X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FControls%2FSMESH_Controls.cxx;h=a8a20c46ce1dc98ccb32e59abb7212e61b9343ec;hp=44d92ef4d8694d5d059cd0079d64d9924128a41f;hb=b881b9c7b9c1c2f4d5245d5ffd17eea91b46f26e;hpb=6938ef133c76761f5e8cd9b76813b584c4a98dd0 diff --git a/src/Controls/SMESH_Controls.cxx b/src/Controls/SMESH_Controls.cxx index 44d92ef4d..a8a20c46c 100644 --- a/src/Controls/SMESH_Controls.cxx +++ b/src/Controls/SMESH_Controls.cxx @@ -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 ); } }