X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FModuleBase%2FModuleBase_WidgetValidated.cpp;h=bd9cdbd76b9a019995b20b451caf0bcbdcfa4767;hb=2e0f664e66dc2b46796df2953f52871b10799173;hp=a11c8c2018417011425d6a5c871609c4785f6ac3;hpb=320710fc11448dcd4b197ddd81974c94892b97db;p=modules%2Fshaper.git 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