To avoid exception, if the list of selected objects is empty.

This commit is contained in:
mzn 2005-06-27 05:45:12 +00:00
parent 964af78757
commit 4401d3e8db

View File

@ -516,6 +516,8 @@ void SMESHGUI_MeshPatternDlg::onSelectionDone()
} else if (mySelInput == Ids) {
SALOME_ListIO aList;
mySelectionMgr->selectedObjects(aList,SVTK_Viewer::Type());
if (aList.Extent() != 1)
return;
QString anIds;
if (!SMESH::GetNameOfSelectedElements(mySelector, aList.First(), anIds))