]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL9787
authorasl <asl@opencascade.com>
Fri, 19 Aug 2005 04:44:59 +0000 (04:44 +0000)
committerasl <asl@opencascade.com>
Fri, 19 Aug 2005 04:44:59 +0000 (04:44 +0000)
src/SMESHGUI/SMESHGUI_EditHypothesesDlg.cxx

index b03e461acfa5b09f9cf2e31b22f9c6835515eccf..c2d0185b6aaa9579d13034ca1d7510d5f3ccecaa 100644 (file)
@@ -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);