comparison 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
comparison
equal deleted inserted replaced
602:02d9664906e8 603:e43368ec5ff0
38 void toXml(QTextStream &stream, 38 void toXml(QTextStream &stream,
39 QString indent = "", 39 QString indent = "",
40 QString extraAttributes = "") const 40 QString extraAttributes = "") const
41 { 41 {
42 stream << QString("%1<point frame=\"%2\" label=\"%3\" %4/>\n") 42 stream << QString("%1<point frame=\"%2\" label=\"%3\" %4/>\n")
43 .arg(indent).arg(frame).arg(label).arg(extraAttributes); 43 .arg(indent).arg(frame).arg(XmlExportable::encodeEntities(label))
44 .arg(extraAttributes);
44 } 45 }
45 46
46 QString toDelimitedDataString(QString delimiter, size_t sampleRate) const 47 QString toDelimitedDataString(QString delimiter, size_t sampleRate) const
47 { 48 {
48 QStringList list; 49 QStringList list;