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 047781d20f51bdc54ba957e3fe3f71854d659a37..e896c4e6c0c2bf73268561238b31eb4f796119fb 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))