Salome HOME
Exclude ViewCube from selection processing
[modules/shaper.git] / src / ModuleBase / ModuleBase_FilterValidated.cpp
index 3a4d58485de7bec23192b5ea4ebd0be2ebb48d0f..505bbe3d07fc6f5dac796ba0d35517ba3d097746 100644 (file)
@@ -49,6 +49,8 @@ Standard_Boolean ModuleBase_FilterValidated::
       if (aCurrentWidget) {
         ModuleBase_ViewerPrsPtr aPrs(new ModuleBase_ViewerPrs());
         myWorkshop->selection()->fillPresentation(aPrs, theOwner);
+        if (aPrs->isEmpty())
+          return false;
         ModuleBase_WidgetValidated* aWidgetValidated = dynamic_cast<ModuleBase_WidgetValidated*>
                                                                                (aCurrentWidget);
         if (aWidgetValidated)