]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Union of validator and filter functionalities.
authornds <natalia.donis@opencascade.com>
Thu, 26 Mar 2015 04:49:22 +0000 (07:49 +0300)
committernds <natalia.donis@opencascade.com>
Thu, 26 Mar 2015 04:49:22 +0000 (07:49 +0300)
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.

src/PartSet/PartSet_WidgetShapeSelector.cpp

index 5c68a10159daacf2db318642c05626a5ccddb2f3..6dd500d4a9dba30825d4c589fb6a0fd0ab940d2e 100644 (file)
@@ -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<XGUI_ModuleConnector*>(myWorkshop);
   XGUI_Workshop* aWorkshop = aConnector->workshop();