From: azv Date: Tue, 4 Apr 2017 11:57:40 +0000 (+0300) Subject: Fix crash on Debian 8 when selecting center of circle while creation X-Git-Tag: V_2.7.0~83 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3c00c48c900fcca04fcaeb399c635a9c3dfc2f15;p=modules%2Fshaper.git Fix crash on Debian 8 when selecting center of circle while creation --- diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Circ2dBuilder.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Circ2dBuilder.cpp index 754ef43a2..286b226d3 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Circ2dBuilder.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Circ2dBuilder.cpp @@ -527,7 +527,7 @@ std::shared_ptr GeomAlgoAPI_Circ2dBuilder::circle() std::shared_ptr 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 aCircleCenter(new GeomAPI_Pnt2d(aCenter.X(), aCenter.Y())); std::shared_ptr aCircleDir(new GeomAPI_Dir2d(aXAxis.X(), aXAxis.Y()));