# svn diff -c 729276 svn://anonsvn.kde.org/home/kde/branches/koffice/1.6/ # svn diff -c 738929 svn://anonsvn.kde.org/home/kde/branches/koffice/1.6/ Index: koffice/krita/core/kis_perspective_math.cpp =================================================================== --- koffice/krita/core/kis_perspective_math.cpp (revision 738928) +++ koffice/krita/core/kis_perspective_math.cpp (revision 738929) @@ -24,7 +24,7 @@ #if 1 -#include +#include #include #include //#define NDEBUG // uncomment to remove checking of assert() @@ -57,9 +57,9 @@ void rprint()const; //print entries on a single line void resize(int n); int operator==(const vector& v)const; - friend vector operator*(ElType c,vector& v ); - friend vector operator*(vector& v,ElType c ); - friend ostream& operator<<(ostream& s,vector& v); + friend vector operator* (ElType c,vector& v ); + friend vector operator*(vector& v,ElType c ); + friend std::ostream& operator<<(std::ostream& s,vector& v); }; template void vector::zero() @@ -129,10 +129,10 @@ void vector::rprint()const //print entries on a single line { int i; - cout << "VECTOR: "; - cout << "("; - for(i=0;i @@ -164,7 +164,7 @@ return ans; } template - ostream& operator<<(ostream& s,vector& v) + std::ostream& operator<<(std::ostream& s,vector& v) { s << "("; for(int i=0;i operator-(const matrix& a); matrix transpose(); //matrix inverse(); - friend ostream& operator<<(ostream& s,matrix& m); + friend std::ostream& operator<<(std::ostream& s,matrix& m); friend void ludcmp(matrix& a,vector& indx,double &d); friend void lubksb(matrix&a,vector& indx,vector&b); }; @@ -357,7 +357,7 @@ return ans; } template - ostream& operator<<(ostream& s,matrix& m) + std::ostream& operator<<(std::ostream& s,matrix& m) { for(int i=0; i big) big=temp; /* kdDebug() << temp << " " << fabs(a[i][j]) << " "<< big <text(); } -bool Cell::setText(const QString& text, bool asString) { - - //FIXME: there is some problem with asString parameter, when it's set - //to true KSpread says: ASSERT: "f" in Dependencies.cpp (621) - //kspread: Cell at row 6, col 1 marked as formula, but formula is NULL - +bool Cell::setText(const QString& text) { KSpread::ProtectedCheck prot; prot.setSheet (m_sheet); prot.add (QPoint (m_col, m_row)); @@ -189,7 +184,7 @@ KSpread::DataManipulator *dm = new KSpread::DataManipulator (); dm->setSheet (m_sheet); dm->setValue (text); - dm->setParsing (!asString); + dm->setParsing (true); dm->add (QPoint (m_col, m_row)); dm->execute (); Index: koffice/kspread/plugins/scripting/kspreadcore/krs_cell.h =================================================================== --- koffice/kspread/plugins/scripting/kspreadcore/krs_cell.h (revision 729275) +++ koffice/kspread/plugins/scripting/kspreadcore/krs_cell.h (revision 729276) @@ -131,11 +131,10 @@ */ const QString text() const; /** - * Set the text of the cell. If asString is true, the text - * will be handled as string else we try to parse the - * string to the expected value. + * Set the text of the cell. the text + * will be handled as string */ - bool setText(const QString& text, bool asString = false); + bool setText(const QString& text); /** * Return the textcolor as RGB-value in the format "#RRGGBB".