Salome HOME
bos #29395 EDF 25009 - import1D2D mesh fails
[modules/smesh.git] / src / Controls / SMESH_Controls.cxx
index 44d92ef4d8694d5d059cd0079d64d9924128a41f..a8a20c46ce1dc98ccb32e59abb7212e61b9343ec 100644 (file)
@@ -4453,9 +4453,12 @@ SMDSAbs_ElementType ElementsOnShape::GetType() const
 
 void ElementsOnShape::SetTolerance (const double theToler)
 {
-  if (myToler != theToler) {
+  if (myToler != theToler)
+  {
     myToler = theToler;
-    SetShape(myShape, myType);
+    TopoDS_Shape s = myShape;
+    myShape.Nullify();
+    SetShape( s, myType );
   }
 }