Salome HOME
Fix for PAL8269(One can't select a pointer on geometry in mesh filters).
[modules/smesh.git] / src / StdMeshers / StdMeshers_Regular_1D.cxx
index bca9e634c91ddb24d8961ae8bce2e45f123f098c..020bb2d522933a2b95d3d7592e13b5b53a35be4d 100644 (file)
@@ -505,7 +505,9 @@ const list <const SMESHDS_Hypothesis *> & StdMeshers_Regular_1D::GetUsedHypothes
         aMesh.IsPropagatedHypothesis(aShape, _mainEdge))
     {
       // Propagation of 1D hypothesis from <aMainEdge> on this edge
-      _usedHypList = GetAppliedHypothesis(aMesh, _mainEdge);   // copy
+      //_usedHypList = GetAppliedHypothesis(aMesh, _mainEdge); // copy
+      // use a general method in order not to nullify _mainEdge
+      _usedHypList = SMESH_Algo::GetUsedHypothesis(aMesh, _mainEdge);  // copy
       nbHyp = _usedHypList.size();
     }
   }