xml entity fix

This commit is contained in:
Max-Wilhelm Bruker 2010-10-12 16:21:26 +02:00
parent ae57a39042
commit 842f266d82

View file

@ -78,8 +78,11 @@ void SerializableItem_Map::writeElement(QXmlStreamWriter *xml)
bool SerializableItem_String::readElement(QXmlStreamReader *xml)
{
// This function is sometimes called multiple times if there are
// entities in the strings, so we have to make sure the data is
// not overwritten but appended to.
if (xml->isCharacters() && !xml->isWhitespace())
data = xml->text().toString();
data.append(xml->text().toString());
return SerializableItem::readElement(xml);
}