]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL13330 (When mesh generation does not success, trace where)
authoreap <eap@opencascade.com>
Wed, 18 Apr 2007 07:03:07 +0000 (07:03 +0000)
committereap <eap@opencascade.com>
Wed, 18 Apr 2007 07:03:07 +0000 (07:03 +0000)
   avoid exception at attempt to compute not a mesh object

src/SMESHGUI/SMESHGUI_ComputeDlg.cxx

index 873e4c6d31558c76622bb4f01cd11f64ba6ab7d6..3d9a35d8bb6f1c7f14cf4f4c909b5c692d121e46 100644 (file)
@@ -828,6 +828,14 @@ void SMESHGUI_ComputeOp::startOperation()
       }
     }
   }
+  else {
+    SUIT_MessageBox::warn1(desktop(),
+                           tr("SMESH_WRN_WARNING"),
+                           tr("SMESH_WRN_NO_AVAILABLE_DATA"),
+                           tr("SMESH_BUT_OK"));
+    onCancel();
+    return;
+  }
 
   myDlg->setCaption(tr( computeFailed ? "SMESH_WRN_COMPUTE_FAILED" : "SMESH_COMPUTE_SUCCEED"));