Fix bug caused by integration of improvement for tri-quadratic elements - dialog box for adding of quadratic hexahedron was not shown.

This commit is contained in:
vsr 2012-11-08 16:05:16 +00:00
parent ea5674061b
commit 32ea2faf03

View File

@ -3023,7 +3023,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
if(checkLock(aStudy)) break; if(checkLock(aStudy)) break;
if ( vtkwnd ) { if ( vtkwnd ) {
EmitSignalDeactivateDialog(); EmitSignalDeactivateDialog();
SMDSAbs_EntityType type; SMDSAbs_EntityType type = SMDSEntity_Last;
switch (theCommandID) { switch (theCommandID) {
case 4034: case 4034:
@ -3041,13 +3041,13 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
case 4039: case 4039:
type = SMDSEntity_Quad_Penta; break; type = SMDSEntity_Quad_Penta; break;
case 4040: case 4040:
type = SMDSEntity_Quad_Hexa; type = SMDSEntity_Quad_Hexa; break;
case 4140: case 4140:
type = SMDSEntity_TriQuad_Hexa; type = SMDSEntity_TriQuad_Hexa; break;
break; default: break;
default:;
} }
( new SMESHGUI_AddQuadraticElementDlg( this, type ) )->show(); if ( type != SMDSEntity_Last )
( new SMESHGUI_AddQuadraticElementDlg( this, type ) )->show();
} }
else { else {
SUIT_MessageBox::warning(SMESHGUI::desktop(), SUIT_MessageBox::warning(SMESHGUI::desktop(),