diff data/model/SparseOneDimensionalModel.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 72ec275e458b
children 1415e35881f6
line wrap: on
line diff
--- a/data/model/SparseOneDimensionalModel.h	Mon Aug 24 16:07:23 2009 +0000
+++ b/data/model/SparseOneDimensionalModel.h	Tue Sep 08 11:27:26 2009 +0000
@@ -40,7 +40,8 @@
                QString extraAttributes = "") const
     {
         stream << QString("%1<point frame=\"%2\" label=\"%3\" %4/>\n")
-	    .arg(indent).arg(frame).arg(label).arg(extraAttributes);
+	    .arg(indent).arg(frame).arg(XmlExportable::encodeEntities(label))
+            .arg(extraAttributes);
     }
 
     QString toDelimitedDataString(QString delimiter, size_t sampleRate) const