Salome HOME
To avoid exception, if the list of selected objects is empty.
authormzn <mzn@opencascade.com>
Mon, 27 Jun 2005 05:45:12 +0000 (05:45 +0000)
committermzn <mzn@opencascade.com>
Mon, 27 Jun 2005 05:45:12 +0000 (05:45 +0000)
src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx

index 047781d..e896c4e 100755 (executable)
@@ -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))