diff data/model/RegionModel.h @ 627:080d8bdd8762

* Fix failure to encode entities in label texts
author Chris Cannam
date Mon, 05 Jul 2010 11:54:19 +0000
parents b1dc68507e46
children 3a5ee4b6c9ad
line wrap: on
line diff
--- a/data/model/RegionModel.h	Mon May 24 16:04:10 2010 +0000
+++ b/data/model/RegionModel.h	Mon Jul 05 11:54:19 2010 +0000
@@ -55,7 +55,8 @@
     {
 	stream <<
             QString("%1<point frame=\"%2\" value=\"%3\" duration=\"%4\" label=\"%5\" %6/>\n")
-	    .arg(indent).arg(frame).arg(value).arg(duration).arg(label).arg(extraAttributes);
+	    .arg(indent).arg(frame).arg(value).arg(duration)
+            .arg(XmlExportable::encodeEntities(label)).arg(extraAttributes);
     }
 
     QString toDelimitedDataString(QString delimiter, size_t sampleRate) const