diff data/model/SparseTimeValueModel.h @ 603:e43368ec5ff0

* Fix session save bug reported by Jeff Smith (entities not encoded in label attributes for points in layers)
author Chris Cannam
date Tue, 08 Sep 2009 11:27:26 +0000
parents f5e8f12d2e58
children 1415e35881f6
line wrap: on
line diff
--- a/data/model/SparseTimeValueModel.h	Mon Aug 24 16:07:23 2009 +0000
+++ b/data/model/SparseTimeValueModel.h	Tue Sep 08 11:27:26 2009 +0000
@@ -45,7 +45,8 @@
                QString extraAttributes = "") const
     {
         stream << QString("%1<point frame=\"%2\" value=\"%3\" label=\"%4\" %5/>\n")
-	    .arg(indent).arg(frame).arg(value).arg(label).arg(extraAttributes);
+	    .arg(indent).arg(frame).arg(value).arg(XmlExportable::encodeEntities(label))
+            .arg(extraAttributes);
     }
 
     QString toDelimitedDataString(QString delimiter, size_t sampleRate) const