From: nds Date: Thu, 26 Mar 2015 04:49:22 +0000 (+0300) Subject: Union of validator and filter functionalities. X-Git-Tag: V_1.1.0~83 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0a381ba8c7daab294183aa42a4516666524c6ae2;p=modules%2Fshaper.git Union of validator and filter functionalities. External edge is visualized until another edge is selected of the filtered value is not valid After merge from master, where a visualization bug is fixed, the edge should be erased from the viewer always in restoreAttributeValue. --- diff --git a/src/PartSet/PartSet_WidgetShapeSelector.cpp b/src/PartSet/PartSet_WidgetShapeSelector.cpp index 5c68a1015..6dd500d4a 100644 --- a/src/PartSet/PartSet_WidgetShapeSelector.cpp +++ b/src/PartSet/PartSet_WidgetShapeSelector.cpp @@ -91,8 +91,10 @@ void PartSet_WidgetShapeSelector::storeAttributeValue() void PartSet_WidgetShapeSelector::restoreAttributeValue(const bool theValid) { ModuleBase_WidgetShapeSelector::restoreAttributeValue(theValid); - //if (!theValid) - removeExternal(); + /// this is a temporary code, will be removed when master is merged to this branch + /// after merge, the external edge should be removed always, without flag checking + if (!theValid) + removeExternal(); /* XGUI_ModuleConnector* aConnector = dynamic_cast(myWorkshop); XGUI_Workshop* aWorkshop = aConnector->workshop();