Salome HOME
Roll back the modification, not yet approved
[modules/shaper.git] / src / Config / Config_XMLReader.cpp
index c0a0a2ee0a0e4beac70cd5f8fec2f7ea4d2e8004..b6bbc0ecc3cb98a2ea4759f3b3957620541404df 100644 (file)
@@ -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;
   }
 }