Salome HOME
Copyright update 2020
[modules/shaper.git] / src / ModuleBase / ModuleBase_FilterValidated.cpp
index 3a4d58485de7bec23192b5ea4ebd0be2ebb48d0f..55152486dde80633923c552fb73bce3718ba1462 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2020  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -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)