[Kst] [Bug 144373] Embedded data (in .kst file) is not used

Andrew Walker arwalker at sumusltd.com
Tue Jun 26 19:05:49 CEST 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=144373         
arwalker sumusltd com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From arwalker sumusltd com  2007-06-26 19:05 -------
SVN commit 680600 by arwalker:

BUG:144373 Apply George's patch

 M  +7 -1      kstrvector.cpp  


--- branches/work/kst/1.5/kst/src/libkst/kstrvector.cpp #680599:680600
 @ -330,7 +330,12  @
 
 /** Save vector information */
 void KstRVector::save(QTextStream &ts, const QString& indent, bool saveAbsolutePosition) {
-  if (_file) {    
+  if (_saveData) {
+    // This is ugly.  Really we need a way to change vector types at runtime.
+    ts << indent << "<avector>" << endl;
+    KstVector::save(ts, indent + "  ", saveAbsolutePosition);
+    ts << indent << "</avector>" << endl;
+  } else if (_file) {
     ts << indent << "<vector>" << endl;
     KstVector::save(ts, indent + "  ", saveAbsolutePosition);
     _file->readLock();
 @ -346,6 +351,7  @
       ts << indent << "  <start>" << ReqF0 << "</start>" << endl;
       ts << indent << "  <num>" << ReqNF << "</num>" << endl;
     }
+
     if (doSkip()) {
       ts << indent << "  <skip>" << Skip << "</skip>" << endl;
       if (doAve()) {


More information about the Kst mailing list