[Kst] branches/work/kst/portto4/kst/src/libkst

Nicolas Brisset nicolas.brisset at eurocopter.com
Tue Oct 9 23:16:47 UTC 2012


SVN commit 1319923 by brisset:

Don't save datasource- or vector-derived strings (similar to what we do for scalars, matrices and vectors) as they ar recreated automatically 
when we reload the data.


 M  +3 -0      string_kst.cpp  


--- branches/work/kst/portto4/kst/src/libkst/string_kst.cpp #1319922:1319923
@@ -55,6 +55,9 @@
 
 
 void String::save(QXmlStreamWriter &s) {
+  if (provider()) { // Don't save datasource- or vector-derived strings
+    return;
+  }
   s.writeStartElement("string");
   if (_orphan) {
     s.writeAttribute("orphan", "true");


More information about the Kst mailing list