[Kst] branches/work/kst/1.5/kst/src/libkst
Andrew Walker
arwalker at sumusltd.com
Tue Jun 26 19:05:45 CEST 2007
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