[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Mon Sep 27 04:58:43 CEST 2004


CVS commit by staikos: 

fix saving - equation->equationobject, psd->psdobject


  M +1 -1      kstdoc.cpp   1.124
  M +2 -2      kstequation.cpp   1.5
  M +2 -2      kstpsd.cpp   1.6


--- kdeextragear-2/kst/kst/kstdoc.cpp  #1.123:1.124
@@ -482,5 +482,5 @@ bool KstDoc::saveDocument(const QString 
   QFile f(filename);
 
-  if (f.exists() && (filename != absFilePath())) {
+  if (f.exists() && filename != absFilePath()) {
     if (KMessageBox::warningYesNo(0L, i18n("%1: A file of this name already exists.").arg(filename),
                                   i18n("Warning"),i18n("&Overwrite"),

--- kdeextragear-2/kst/kst/kstequation.cpp  #1.4:1.5
@@ -198,5 +198,5 @@ KstObject::UpdateType KstEquation::updat
 void KstEquation::save(QTextStream &ts, const QString& indent) {
   QString l2 = indent + "  ";
-  ts << indent << "<equation>" << endl;
+  ts << indent << "<equationobject>" << endl;
   ts << l2 << "<tag>" << QStyleSheet::escape(tagName()) << "</tag>" << endl;
   ts << l2 << "<equation>" << QStyleSheet::escape(_equation) << "</equation>" << endl;
@@ -213,5 +213,5 @@ void KstEquation::save(QTextStream &ts, 
   }
 
-  ts << indent << "</equation>" << endl;
+  ts << indent << "</equationobject>" << endl;
 }
 

--- kdeextragear-2/kst/kst/kstpsd.cpp  #1.5:1.6
@@ -295,5 +295,5 @@ KstObject::UpdateType KstPSD::update(int
 void KstPSD::save(QTextStream &ts, const QString& indent) {
   QString l2 = indent + "  ";
-  ts << indent << "<psd>" << endl;
+  ts << indent << "<psdobject>" << endl;
   ts << l2 << "<tag>" << QStyleSheet::escape(tagName()) << "</tag>" << endl;
   ts << l2 << "<vectag>" << QStyleSheet::escape(_inputVectors[INVECTOR]->tagName()) << "</vectag>" << endl;
@@ -305,5 +305,5 @@ void KstPSD::save(QTextStream &ts, const
   ts << l2 << "<VUnits>" << VUnits << "</VUnits>" << endl;
   ts << l2 << "<RUnits>" << RUnits << "</RUnits>" << endl;
-  ts << indent << "</psd>" << endl;
+  ts << indent << "</psdobject>" << endl;
 }
 





More information about the Kst mailing list