AttributeSelectionListPtr anObjectsSelList =
selectionList(FeaturesPlugin_MultiTranslation::OBJECTS_LIST_ID());
if (anObjectsSelList->size() == 0) {
+ setError("Error: empty selection list");
return;
}
for(int anObjectsIndex = 0; anObjectsIndex < anObjectsSelList->size(); anObjectsIndex++) {
GeomAPI_ShapeIterator anIt(aShape);
anEdge = anIt.current()->edge();
}
- else
- {
- setError(aSelectionError);
- return;
- }
if (!anEdge.get())
{
AttributeSelectionListPtr anObjectsSelList =
selectionList(FeaturesPlugin_MultiTranslation::OBJECTS_LIST_ID());
if (anObjectsSelList->size() == 0) {
+ setError("Error: empty selection list");
return;
}
for(int anObjectsIndex = 0; anObjectsIndex < anObjectsSelList->size(); anObjectsIndex++) {
GeomAPI_ShapeIterator anIt(aShape);
anEdge = anIt.current()->edge();
}
- else
- {
- setError(aSelectionError);
- return;
- }
if (!anEdge.get())
{
GeomAPI_ShapeIterator anIt(aShape);
anEdge = anIt.current()->edge();
}
- else
- {
- setError(aSelectionError);
- return;
- }
if (!anEdge.get())
{