Salome HOME
Fix for a crash: Create sketch, circle, Radius constraint with 0 value.
[modules/shaper.git] / src / GeomAPI / GeomAPI_Pnt2d.cpp
index 5ef9df175c3eb9f6f18e3386d20b8df1d7acf97c..a2bab72a78896bd3d07c080401b72fdeb8fa89e2 100644 (file)
@@ -1,3 +1,5 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
 // File:        GeomAPI_Pnt2d.cpp
 // Created:     29 May 2014
 // Author:      Artem ZHIDKOV
@@ -12,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))