mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-13 02:00:34 +05:00
To avoid exception, if the list of selected objects is empty.
This commit is contained in:
parent
964af78757
commit
4401d3e8db
@ -516,6 +516,8 @@ void SMESHGUI_MeshPatternDlg::onSelectionDone()
|
|||||||
} else if (mySelInput == Ids) {
|
} else if (mySelInput == Ids) {
|
||||||
SALOME_ListIO aList;
|
SALOME_ListIO aList;
|
||||||
mySelectionMgr->selectedObjects(aList,SVTK_Viewer::Type());
|
mySelectionMgr->selectedObjects(aList,SVTK_Viewer::Type());
|
||||||
|
if (aList.Extent() != 1)
|
||||||
|
return;
|
||||||
|
|
||||||
QString anIds;
|
QString anIds;
|
||||||
if (!SMESH::GetNameOfSelectedElements(mySelector, aList.First(), anIds))
|
if (!SMESH::GetNameOfSelectedElements(mySelector, aList.First(), anIds))
|
||||||
|
Loading…
Reference in New Issue
Block a user