xml entity fix
This commit is contained in:
parent
ae57a39042
commit
842f266d82
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue