X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConfig%2FConfig_XMLReader.cpp;h=b6bbc0ecc3cb98a2ea4759f3b3957620541404df;hb=853e0eec6016120b641efa6adf427a239cf203cf;hp=c0a0a2ee0a0e4beac70cd5f8fec2f7ea4d2e8004;hpb=a24b7e6f4d112d5e7889fd76f030298fc428cd01;p=modules%2Fshaper.git diff --git a/src/Config/Config_XMLReader.cpp b/src/Config/Config_XMLReader.cpp index c0a0a2ee0..b6bbc0ecc 100644 --- a/src/Config/Config_XMLReader.cpp +++ b/src/Config/Config_XMLReader.cpp @@ -144,11 +144,11 @@ std::string Config_XMLReader::getNodeName(xmlNodePtr theNode) return result; } -void Config_XMLReader::storeAttribute(xmlNodePtr theNode, const char* theAttribute) +void Config_XMLReader::storeAttribute(xmlNodePtr theNode, const char* theAttribute, bool doClean) { std::string aKey = getNodeName(theNode) + ":" + std::string(theAttribute); std::string aValue = getProperty(theNode, theAttribute); - if(!aValue.empty()) { + if (doClean || !aValue.empty()) { myCachedAttributes[aKey] = aValue; } }