Salome HOME
PAL13409: EDF282 SMESH: Tetrahedron is added if we specify Mefisto.
authorjfa <jfa@opencascade.com>
Fri, 8 Sep 2006 11:18:59 +0000 (11:18 +0000)
committerjfa <jfa@opencascade.com>
Fri, 8 Sep 2006 11:18:59 +0000 (11:18 +0000)
src/SMESHGUI/SMESHGUI_MeshOp.cxx

index dea4404722ff6e77ebd9fbdd265fb41673151bfc..111c5944f1f4a8faffc5453ffcc5c0f2292a787a 100644 (file)
@@ -1020,7 +1020,7 @@ void SMESHGUI_MeshOp::onAlgoSelected( const int theIndex,
 
       // restore previously selected algo
       algoIndex = myAvailableHypData[dim][Algo].findIndex( curAlgo );
 
       // restore previously selected algo
       algoIndex = myAvailableHypData[dim][Algo].findIndex( curAlgo );
-      if ( !isSubmesh && algoIndex < 0 && soleCompatible )
+      if ( !isSubmesh && algoIndex < 0 && soleCompatible && !forward )
         // select the sole compatible algo
         algoIndex = myAvailableHypData[dim][Algo].findIndex( soleCompatible );
       setCurrentHyp( dim, Algo, algoIndex );
         // select the sole compatible algo
         algoIndex = myAvailableHypData[dim][Algo].findIndex( soleCompatible );
       setCurrentHyp( dim, Algo, algoIndex );