From: eap Date: Tue, 21 Jan 2014 09:24:53 +0000 (+0000) Subject: 22316: EDF 2719 SMESH: Split hexas into prisms X-Git-Tag: V7_4_0a1~99 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3f7c707fd9f4ede2b7a8e5e83493d234ee2bb4f9;p=modules%2Fsmesh.git 22316: EDF 2719 SMESH: Split hexas into prisms disable dialog if a mesh includes no hexahedra --- diff --git a/src/SMESHGUI/SMESHGUI_MultiEditDlg.cxx b/src/SMESHGUI/SMESHGUI_MultiEditDlg.cxx index a252ce333..a8682ee95 100755 --- a/src/SMESHGUI/SMESHGUI_MultiEditDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_MultiEditDlg.cxx @@ -1698,6 +1698,7 @@ void SMESHGUI_SplitVolumesDlg::on3d2dChanged(int isPrism) } SMESHGUI_MultiEditDlg::on3d2dChanged( !myEntityType ); myEntityType = 1; // == VOLUME + onSelectionDone(); } //================================================================================ @@ -1788,6 +1789,8 @@ void SMESHGUI_SplitVolumesDlg::onSelectionDone() } updateButtons(); } + + myCriterionGrp->setEnabled( !myMesh->_is_nil() && nbElemsInMesh() > 0 ); } //================================================================================