Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
842f266d
Commit
842f266d
authored
Oct 12, 2010
by
Max-Wilhelm Bruker
Browse files
xml entity fix
parent
ae57a390
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/serializable_item.cpp
View file @
842f266d
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment