From: vsv Date: Wed, 9 Oct 2019 08:32:08 +0000 (+0300) Subject: Fix bug with selection of sub-shapes X-Git-Tag: V9_5_0a1~167^2~94 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5f74827e7f727522683eb916f16e8bcf79d9cbe8;p=modules%2Fshaper.git Fix bug with selection of sub-shapes --- diff --git a/src/ModuleBase/ModuleBase_WidgetValidated.cpp b/src/ModuleBase/ModuleBase_WidgetValidated.cpp index a11c8c201..bd9cdbd76 100644 --- a/src/ModuleBase/ModuleBase_WidgetValidated.cpp +++ b/src/ModuleBase/ModuleBase_WidgetValidated.cpp @@ -107,7 +107,7 @@ bool ModuleBase_WidgetValidated::isValidInFilters(const ModuleBase_ViewerPrsPtr& // if an owner is null, the selection happens in the Object browser. // creates a selection owner on the base of object shape and the object AIS object - if ((aOwnersList.Size() > 0) && thePrs->object().get()) { + if ((aOwnersList.Size() == 0) && thePrs->object().get()) { ResultPtr aResult = myWorkshop->selection()->getResult(thePrs); GeomShapePtr aShape = aResult.get() ? aResult->shape() : GeomShapePtr(); // some results have no shape, e.g. the parameter one. So, they should not be validated