mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
IPAL21340 Compute leads to Unknown Exception if No available data in selection.
This commit is contained in:
parent
a269dcbbdf
commit
ab21216f10
@ -1681,9 +1681,12 @@ void SMESHGUI_BaseComputeOp::evaluateMesh()
|
||||
SMESH::long_array_var aRes;
|
||||
|
||||
_PTR(SObject) aMeshSObj = SMESH::FindSObject(myMesh);
|
||||
if ( !aMeshSObj ) // IPAL21340
|
||||
return;
|
||||
|
||||
bool hasShape = myMesh->HasShapeToMesh();
|
||||
bool shapeOK = myMainShape->_is_nil() ? !hasShape : hasShape;
|
||||
if ( shapeOK && aMeshSObj )
|
||||
if ( shapeOK )
|
||||
{
|
||||
myCompDlg->myMeshName->setText( aMeshSObj->GetName().c_str() );
|
||||
SMESH::SMESH_Gen_var gen = getSMESHGUI()->GetSMESHGen();
|
||||
|
Loading…
Reference in New Issue
Block a user