# HG changeset patch
# User Chris Cannam
# Date 1278330859 0
# Node ID 080d8bdd8762e4e2ed4d5be38fd31de72551974d
# Parent 686fc1703a33c58ee867fdd6310cdbfbd7ff3307
* Fix failure to encode entities in label texts
diff -r 686fc1703a33 -r 080d8bdd8762 data/model/NoteModel.h
--- 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\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
diff -r 686fc1703a33 -r 080d8bdd8762 data/model/RegionModel.h
--- 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\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