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
(from parent 1:
a269dcb
)
IPAL21340 Compute leads to Unknown Exception if No available data in selection.
author
dmv
<dmv@opencascade.com>
Tue, 15 Sep 2009 13:25:02 +0000
(13:25 +0000)
committer
dmv
<dmv@opencascade.com>
Tue, 15 Sep 2009 13:25:02 +0000
(13:25 +0000)
src/SMESHGUI/SMESHGUI_ComputeDlg.cxx
patch
|
blob
|
history
diff --git
a/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx
b/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx
index aef920ec4ea2c0e61c3b4b1548a5d84008465f27..ed2c5311f6896ef028dfe1fe9aa0db665696d321 100644
(file)
--- a/
src/SMESHGUI/SMESHGUI_ComputeDlg.cxx
+++ b/
src/SMESHGUI/SMESHGUI_ComputeDlg.cxx
@@
-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();