]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix crash on Debian 8 when selecting center of circle while creation
authorazv <azv@opencascade.com>
Tue, 4 Apr 2017 11:57:40 +0000 (14:57 +0300)
committerazv <azv@opencascade.com>
Tue, 4 Apr 2017 11:58:15 +0000 (14:58 +0300)
src/GeomAlgoAPI/GeomAlgoAPI_Circ2dBuilder.cpp

index 754ef43a27d85edc962b50049ad0808715ac65be..286b226d3d88999797db05203cbfc948ba89a9a1 100644 (file)
@@ -527,7 +527,7 @@ std::shared_ptr<GeomAPI_Circ2d> GeomAlgoAPI_Circ2dBuilder::circle()
   std::shared_ptr<GeomAPI_Circ2d> aCircle;
   if (aCirc2d) {
     const gp_Pnt2d& aCenter = aCirc2d->Location();
-    const gp_Dir2d& aXAxis = aCirc2d->XAxis().Direction();
+    const gp_Dir2d& aXAxis = aCirc2d->Position().XDirection();
 
     std::shared_ptr<GeomAPI_Pnt2d> aCircleCenter(new GeomAPI_Pnt2d(aCenter.X(), aCenter.Y()));
     std::shared_ptr<GeomAPI_Dir2d> aCircleDir(new GeomAPI_Dir2d(aXAxis.X(), aXAxis.Y()));