Salome HOME
BUG SWP13024
authorabd <abd@opencascade.com>
Fri, 28 Jul 2006 07:31:50 +0000 (07:31 +0000)
committerabd <abd@opencascade.com>
Fri, 28 Jul 2006 07:31:50 +0000 (07:31 +0000)
src/SMESHGUI/SMESHGUI_MeshOp.cxx

index d325f77b27f126198cafbcdb168e14be0f2e56dc..d02f129693603a229485274e6545371b05ac327d 100644 (file)
@@ -1011,10 +1011,17 @@ void SMESHGUI_MeshOp::onAlgoSelected( const int theIndex,
       // set new available algoritms
       availableHyps( dim, Algo, anAvailable, myAvailableHypData[dim][Algo], prevAlgo );
       HypothesisData* soleCompatible = 0;
-      if ( anAvailable.count() == 1 )
+
+      // bug SWP13024 need save following state
+      bool onlyOne = ( anAvailable.count() == 1 );
+      if ( onlyOne )
         soleCompatible = myAvailableHypData[dim][Algo][0];
       if ( dim == aTopDim && prevAlgo ) // all available algoritms should be selectable any way
+      {
         availableHyps( dim, Algo, anAvailable, myAvailableHypData[dim][Algo], 0 );
+        if ( onlyOne )
+          soleCompatible = 0;
+      }
       myDlg->tab( dim )->setAvailableHyps( Algo, anAvailable );
       noCompatible = anAvailable.isEmpty();