From: mpv Date: Mon, 1 Aug 2016 12:28:15 +0000 (+0300) Subject: Make toolbox and switch also "attribute" node: they contain data-attributes and must... X-Git-Tag: V_2.5.0~151 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=841c4b51adfd91a91e288931a96b987e2efa0bf9;p=modules%2Fshaper.git Make toolbox and switch also "attribute" node: they contain data-attributes and must be registered in switch/cases. --- diff --git a/src/Config/Config_Common.cpp b/src/Config/Config_Common.cpp index 6d89535e7..4184449f7 100644 --- a/src/Config/Config_Common.cpp +++ b/src/Config/Config_Common.cpp @@ -62,9 +62,10 @@ bool isAttributeNode(xmlNodePtr theNode) //it should not be a "source" or a "validator" node bool isLogical = isNode(theNode, NODE_SOURCE, NODE_VALIDATOR, NODE_SELFILTER, NULL); - bool isPagedContainer = isNode(theNode, WDG_TOOLBOX, WDG_TOOLBOX_BOX, - WDG_GROUP, WDG_OPTIONALBOX, - WDG_SWITCH, WDG_SWITCH_CASE, NULL); + // here must be only widgets not connected to attributes + bool isPagedContainer = isNode(theNode, WDG_TOOLBOX_BOX, + WDG_GROUP, + WDG_SWITCH_CASE, NULL); return !isLogical && !isPagedContainer; }