From c8e2bd670ee81b761413a78b2d8e53c4929b053c Mon Sep 17 00:00:00 2001 From: asl Date: Fri, 19 Aug 2005 04:44:59 +0000 Subject: [PATCH] PAL9787 --- src/SMESHGUI/SMESHGUI_EditHypothesesDlg.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/SMESHGUI/SMESHGUI_EditHypothesesDlg.cxx b/src/SMESHGUI/SMESHGUI_EditHypothesesDlg.cxx index b03e461ac..c2d0185b6 100644 --- a/src/SMESHGUI/SMESHGUI_EditHypothesesDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_EditHypothesesDlg.cxx @@ -770,11 +770,12 @@ void SMESHGUI_EditHypothesesDlg::InitGeom() //================================================================================= void SMESHGUI_EditHypothesesDlg::UpdateControlState() { - bool isEnabled = (!myMesh->_is_nil() && !myGeomShape->_is_nil() && - ListHypAssignation->count() && ListAlgoAssignation->count()) + // asl the check of "count" is commented because of PAL9787 + bool isEnabled = (!myMesh->_is_nil() && !myGeomShape->_is_nil() /*&& + ListHypAssignation->count() && ListAlgoAssignation->count()*/ ) || - (!mySubMesh->_is_nil() && !myGeomShape->_is_nil() && - (ListHypAssignation->count() || ListAlgoAssignation->count())); + (!mySubMesh->_is_nil() && !myGeomShape->_is_nil() /*&& + (ListHypAssignation->count() || ListAlgoAssignation->count())*/); buttonOk ->setEnabled(myNbModification && isEnabled && !myImportedMesh); buttonApply->setEnabled(myNbModification && isEnabled && !myImportedMesh);