X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConfig%2FConfig_WidgetReader.cpp;h=a839b9662492366c16eb3494192bc6a07c396eea;hb=b5893b0a30fac08134c24de4565cb513a43affa6;hp=25d1fdc65c090722c4dddf32bf36ad88068f4cd3;hpb=a731f82dccbfdb67cbf8e8d617222a4d3e32018a;p=modules%2Fshaper.git diff --git a/src/Config/Config_WidgetReader.cpp b/src/Config/Config_WidgetReader.cpp index 25d1fdc65..a839b9662 100644 --- a/src/Config/Config_WidgetReader.cpp +++ b/src/Config/Config_WidgetReader.cpp @@ -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;