mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 08:50:35 +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) {
|
||||
SALOME_ListIO aList;
|
||||
mySelectionMgr->selectedObjects(aList,SVTK_Viewer::Type());
|
||||
if (aList.Extent() != 1)
|
||||
return;
|
||||
|
||||
QString anIds;
|
||||
if (!SMESH::GetNameOfSelectedElements(mySelector, aList.First(), anIds))
|
||||
|
Loading…
Reference in New Issue
Block a user