CHANGED: #1471 Apparently when parsing variables, the parser changes the parsed entry, so better to re-read it from the XML-tree when caching.

--HG--
branch : gsoc2012-gui-editor
This commit is contained in:
dfighter1985 2012-08-18 00:27:52 +02:00
parent 91368514b6
commit d23b17f8a0

View file

@ -1125,7 +1125,10 @@ namespace NLGUI
{ {
VariableData data; VariableData data;
data.entry = entry; ptr = xmlGetProp( cur, BAD_CAST "entry" );
if( ptr != NULL )
data.entry = std::string( ptr );
data.type = type; data.type = type;
ptr = xmlGetProp( cur, BAD_CAST "value" ); ptr = xmlGetProp( cur, BAD_CAST "value" );