Salome HOME
Fix for a crash: Create sketch, circle, Radius constraint with 0 value.
[modules/shaper.git] / src / GeomAPI / GeomAPI_Pnt2d.cpp
index 2bd8e3937982f62d42bc0f6c734cc4712ab2cd3d..a2bab72a78896bd3d07c080401b72fdeb8fa89e2 100644 (file)
@@ -14,7 +14,7 @@
 
 #include <Precision.hxx>
 
-#define MY_PNT2D static_cast<gp_Pnt2d*>(myImpl)
+#define MY_PNT2D implPtr<gp_Pnt2d>()
 
 GeomAPI_Pnt2d::GeomAPI_Pnt2d(const double theX, const double theY)
     : GeomAPI_Interface(new gp_Pnt2d(theX, theY))