1 parent 32f2c83 commit cfb6799Copy full SHA for cfb6799
1 file changed
tmxlite/src/Property.cpp
@@ -38,7 +38,7 @@ Property::Property()
38
}
39
40
//public
41
-void Property::parse(const pugi::xml_node &node)
+void Property::parse(const pugi::xml_node& node)
42
{
43
std::string attribData = node.name();
44
if (attribData != "property")
@@ -73,8 +73,10 @@ void Property::parse(const pugi::xml_node &node)
73
74
m_stringValue = node.attribute("value").as_string();
75
76
- //If value is empty, try getting the child value instead
77
- if(m_stringValue.length() < 1){
+ //if value is empty, try getting the child value instead
+ //as this is how multiline string properties are stored.
78
+ if(m_stringValue.empty())
79
+ {
80
m_stringValue = node.child_value();
81
82
0 commit comments