]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2680: Select whole result if type of selection is "object"
authorvsv <vsv@opencascade.com>
Fri, 12 Oct 2018 10:29:47 +0000 (13:29 +0300)
committervsv <vsv@opencascade.com>
Fri, 12 Oct 2018 10:29:47 +0000 (13:29 +0300)
src/ModuleBase/ModuleBase_WidgetSelector.cpp

index 9642a37afab51e5f8a0a88d82978011536c26dee..ec0e2bf6a3f56a8b4c3ff6765f844536224b6ebe 100755 (executable)
@@ -135,7 +135,9 @@ bool ModuleBase_WidgetSelector::acceptSubShape(const GeomShapePtr& theShape,
     return aValid;
   }
   // when the SHAPE type is provided by XML as Object, the whole result shape should be selected.
-  if (!aShape.get() && aShapeTypes.contains(ModuleBase_ResultPrs::Sel_Result)) {
+  //if (!aShape.get() && aShapeTypes.contains(ModuleBase_ResultPrs::Sel_Result)) {
+  // In case of selection of a feature aShape could be not NULL, but result has to be selected
+  if (aShapeTypes.contains(ModuleBase_ResultPrs::Sel_Result)) {
     aValid = true;
     return aValid;
   }