From c93c537c95fde816083747852a8919319873f5f4 Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 12 Oct 2018 13:29:47 +0300 Subject: [PATCH] Issue #2680: Select whole result if type of selection is "object" --- src/ModuleBase/ModuleBase_WidgetSelector.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ModuleBase/ModuleBase_WidgetSelector.cpp b/src/ModuleBase/ModuleBase_WidgetSelector.cpp index 9642a37af..ec0e2bf6a 100755 --- a/src/ModuleBase/ModuleBase_WidgetSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetSelector.cpp @@ -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; } -- 2.39.2