]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Make toolbox and switch also "attribute" node: they contain data-attributes and must...
authormpv <mpv@opencascade.com>
Mon, 1 Aug 2016 12:28:15 +0000 (15:28 +0300)
committermpv <mpv@opencascade.com>
Mon, 1 Aug 2016 12:28:15 +0000 (15:28 +0300)
src/Config/Config_Common.cpp

index 6d89535e7edf6a6553264933b25ff86c0381e338..4184449f734a218ffedc8502dea8429d2b5a0a57 100644 (file)
@@ -62,9 +62,10 @@ bool isAttributeNode(xmlNodePtr theNode)
 \r
   //it should not be a "source" or a "validator" node\r
   bool isLogical = isNode(theNode, NODE_SOURCE, NODE_VALIDATOR, NODE_SELFILTER, NULL);\r
-  bool isPagedContainer = isNode(theNode, WDG_TOOLBOX, WDG_TOOLBOX_BOX,\r
-                                          WDG_GROUP, WDG_OPTIONALBOX,\r
-                                          WDG_SWITCH, WDG_SWITCH_CASE,  NULL);\r
+  // here must be only widgets not connected to attributes\r
+  bool isPagedContainer = isNode(theNode, WDG_TOOLBOX_BOX,\r
+                                          WDG_GROUP,\r
+                                          WDG_SWITCH_CASE,  NULL);\r
   return !isLogical && !isPagedContainer;\r
 }\r
 \r