Commit 842f266d authored by Max-Wilhelm Bruker's avatar Max-Wilhelm Bruker
Browse files

xml entity fix

parent ae57a390
......@@ -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);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment