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

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