From: abd Date: Fri, 28 Jul 2006 07:31:50 +0000 (+0000) Subject: BUG SWP13024 X-Git-Tag: LAST_STABLE_VERSION_21_09_2006_ON_3_2_0~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=698ca213bf078befce28ea6ab42568447aff986b;p=modules%2Fsmesh.git BUG SWP13024 --- diff --git a/src/SMESHGUI/SMESHGUI_MeshOp.cxx b/src/SMESHGUI/SMESHGUI_MeshOp.cxx index d325f77b2..d02f12969 100644 --- a/src/SMESHGUI/SMESHGUI_MeshOp.cxx +++ b/src/SMESHGUI/SMESHGUI_MeshOp.cxx @@ -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();