Salome HOME
IPAL21340
authorptv <ptv@opencascade.com>
Wed, 16 Sep 2009 07:20:43 +0000 (07:20 +0000)
committerptv <ptv@opencascade.com>
Wed, 16 Sep 2009 07:20:43 +0000 (07:20 +0000)
src/SMESHGUI/SMESHGUI_ComputeDlg.cxx

index ed2c5311f6896ef028dfe1fe9aa0db665696d321..5023cdc54a45dca90ba09a108c1f847912253ab4 100644 (file)
@@ -1166,6 +1166,8 @@ SMESHGUI_ComputeOp::~SMESHGUI_ComputeOp()
 void SMESHGUI_ComputeOp::startOperation()
 {
   SMESHGUI_BaseComputeOp::startOperation();
+  if (myMesh->_is_nil())
+    return;
   computeMesh();
 }
 
@@ -1268,6 +1270,8 @@ void SMESHGUI_PrecomputeOp::startOperation()
   }
 
   SMESHGUI_BaseComputeOp::startOperation();
+  if (myMesh->_is_nil())
+    return;
 
   // disconnect slot from preview dialog to have Apply from results of compute operation only 
   disconnect( myDlg, SIGNAL( dlgOk() ), this, SLOT( onOk() ) );
@@ -1647,6 +1651,8 @@ void SMESHGUI_EvaluateOp::startOperation()
 {
   SMESHGUI_BaseComputeOp::evaluateDlg();
   SMESHGUI_BaseComputeOp::startOperation();
+  if (myMesh->_is_nil())
+    return;
   evaluateMesh();
 }