Salome HOME
Meet the coding style (line length <= 100)
[modules/shaper.git] / src / Config / Config_WidgetReader.cpp
index 25d1fdc65c090722c4dddf32bf36ad88068f4cd3..a839b9662492366c16eb3494192bc6a07c396eea 100644 (file)
@@ -57,7 +57,6 @@ bool Config_WidgetReader::processChildren(xmlNodePtr theNode)
 {
   //Read all nodes recursively, source and validator nodes have no children
   return !isNode(theNode, NODE_VALIDATOR,
-                          NODE_SELFILTER,
                           NODE_SOURCE, NULL);
 }
 
@@ -94,6 +93,14 @@ std::string Config_WidgetReader::dumpNode(xmlNodePtr theNode)
 {
   std::string result = "";
   if (!hasChild(theNode)) {
+    // feature which has the next property should be dumped itself
+    std::string anOwnPanel = getProperty(theNode, PROPERTY_PANEL_ID);
+    if (!anOwnPanel.empty()) {
+      xmlBufferPtr buffer = xmlBufferCreate();
+      int size = xmlNodeDump(buffer, theNode->doc, theNode, 0, 0);
+      result = std::string((char*) (buffer->content));
+      xmlBufferFree(buffer);
+    }
     return result;
   }
   //Replace all "source" nodes with content;