Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
964af78
)
To avoid exception, if the list of selected objects is empty.
author
mzn
<mzn@opencascade.com>
Mon, 27 Jun 2005 05:45:12 +0000
(
05:45
+0000)
committer
mzn
<mzn@opencascade.com>
Mon, 27 Jun 2005 05:45:12 +0000
(
05:45
+0000)
src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx
patch
|
blob
|
history
diff --git
a/src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx
b/src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx
index 047781d20f51bdc54ba957e3fe3f71854d659a37..e896c4e6c0c2bf73268561238b31eb4f796119fb 100755
(executable)
--- a/
src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx
+++ b/
src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx
@@
-516,6
+516,8
@@
void SMESHGUI_MeshPatternDlg::onSelectionDone()
} else if (mySelInput == Ids) {
SALOME_ListIO aList;
mySelectionMgr->selectedObjects(aList,SVTK_Viewer::Type());
} 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))
QString anIds;
if (!SMESH::GetNameOfSelectedElements(mySelector, aList.First(), anIds))