From: vsv Date: Wed, 26 Sep 2018 08:35:01 +0000 (+0300) Subject: Issue #2632: Provide selection of features in multi-selector X-Git-Tag: CEA_2018-2~69 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5cb6f7823cdda4b7b1a98cbe4a207da0243e2847;p=modules%2Fshaper.git Issue #2632: Provide selection of features in multi-selector --- diff --git a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp index f5f693274..9f3e71087 100755 --- a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp @@ -399,6 +399,11 @@ bool ModuleBase_WidgetMultiSelector::isValidSelectionCustom(const ModuleBase_Vie bool aValid = ModuleBase_WidgetSelector::isValidSelectionCustom(thePrs); if (aValid) { ResultPtr aResult = myWorkshop->selection()->getResult(thePrs); + if (!aResult.get()) { // In case if a feature was selected + FeaturePtr aFeature = std::dynamic_pointer_cast(thePrs->object()); + if (aFeature.get()) + aResult = aFeature->firstResult(); + } aValid = aResult.get() != NULL; if (aValid) { if (myFeature) {