mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-12 00:29:17 +05:00
Prevent exception at shape selection if no mesh was pre-selected
This commit is contained in:
parent
542321374c
commit
72598d1788
@ -797,7 +797,11 @@ void SMESHGUI_GroupDlg::onObjectSelectionChanged()
|
||||
SALOMEDS::SObject_var aGroupMainShapeSO = aStudy->FindObjectIOR( aStudy->ConvertObjectToIOR(aGroupMainShape) );
|
||||
// The mesh SObject
|
||||
SALOMEDS::SObject_var aMeshSO = aStudy->FindObjectIOR( aStudy->ConvertObjectToIOR(myMesh) );
|
||||
|
||||
if ( aMeshSO->_is_nil() ) {
|
||||
myGeomGroup = GEOM::GEOM_Object::_nil();
|
||||
busy = false;
|
||||
return;
|
||||
}
|
||||
SALOMEDS::SObject_var anObj, aRef;
|
||||
bool isRefOrSubShape = false;
|
||||
if ( aMeshSO->FindSubObject( 1, anObj ) && anObj->ReferencedObject( aRef )) {
|
||||
|
Loading…
Reference in New Issue
Block a user