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:
ea56740
)
Fix bug caused by integration of improvement for tri-quadratic elements - dialog...
author
vsr
<vsr@opencascade.com>
Thu, 8 Nov 2012 16:05:16 +0000
(16:05 +0000)
committer
vsr
<vsr@opencascade.com>
Thu, 8 Nov 2012 16:05:16 +0000
(16:05 +0000)
src/SMESHGUI/SMESHGUI.cxx
patch
|
blob
|
history
diff --git
a/src/SMESHGUI/SMESHGUI.cxx
b/src/SMESHGUI/SMESHGUI.cxx
index c01152b594f6d7d031f1b8a8a4b60c3c9a41376b..a6f7cc0e2fa113433f91fedd3e3e88b14874571f 100644
(file)
--- a/
src/SMESHGUI/SMESHGUI.cxx
+++ b/
src/SMESHGUI/SMESHGUI.cxx
@@
-3023,7
+3023,7
@@
bool SMESHGUI::OnGUIEvent( int theCommandID )
if(checkLock(aStudy)) break;
if ( vtkwnd ) {
EmitSignalDeactivateDialog();
if(checkLock(aStudy)) break;
if ( vtkwnd ) {
EmitSignalDeactivateDialog();
- SMDSAbs_EntityType type;
+ SMDSAbs_EntityType type
= SMDSEntity_Last
;
switch (theCommandID) {
case 4034:
switch (theCommandID) {
case 4034:
@@
-3041,13
+3041,13
@@
bool SMESHGUI::OnGUIEvent( int theCommandID )
case 4039:
type = SMDSEntity_Quad_Penta; break;
case 4040:
case 4039:
type = SMDSEntity_Quad_Penta; break;
case 4040:
- type = SMDSEntity_Quad_Hexa;
+ type = SMDSEntity_Quad_Hexa;
break;
case 4140:
case 4140:
- type = SMDSEntity_TriQuad_Hexa;
- break;
- default:;
+ type = SMDSEntity_TriQuad_Hexa; break;
+ default: break;
}
}
- ( new SMESHGUI_AddQuadraticElementDlg( this, type ) )->show();
+ if ( type != SMDSEntity_Last )
+ ( new SMESHGUI_AddQuadraticElementDlg( this, type ) )->show();
}
else {
SUIT_MessageBox::warning(SMESHGUI::desktop(),
}
else {
SUIT_MessageBox::warning(SMESHGUI::desktop(),