Salome HOME
[Code coverage BuildPlugin]: Improve coverage of Filling and SubShapes features
[modules/shaper.git] / src / BuildPlugin / BuildPlugin_Filling.cpp
index 73da8375d301aeaafdabda27760f67cb3d91db38..6e95dd32c31c6b7753483e2b07e56093be55d031 100644 (file)
@@ -95,8 +95,10 @@ void BuildPlugin_Filling::execute()
 
   // get base objects list
   AttributeSelectionListPtr aSelectionList = selectionList(BASE_OBJECTS_ID());
-  if (aSelectionList->size() <= 1)
+  if (aSelectionList->size() <= 1) {
+    setError("Not enough objects is selected");
     return;
+  }
 
   // collect base shapes
   for(int anIndex = 0; anIndex < aSelectionList->size(); ++anIndex) {