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
(parent:
ca74cc3
)
PAL13330 (When mesh generation does not success, trace where)
author
eap
<eap@opencascade.com>
Wed, 18 Apr 2007 07:03:07 +0000
(07:03 +0000)
committer
eap
<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
patch
|
blob
|
history
diff --git
a/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx
b/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx
index 873e4c6d31558c76622bb4f01cd11f64ba6ab7d6..3d9a35d8bb6f1c7f14cf4f4c909b5c692d121e46 100644
(file)
--- a/
src/SMESHGUI/SMESHGUI_ComputeDlg.cxx
+++ b/
src/SMESHGUI/SMESHGUI_ComputeDlg.cxx
@@
-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"));