From 3c00c48c900fcca04fcaeb399c635a9c3dfc2f15 Mon Sep 17 00:00:00 2001 From: azv Date: Tue, 4 Apr 2017 14:57:40 +0300 Subject: [PATCH] Fix crash on Debian 8 when selecting center of circle while creation --- src/GeomAlgoAPI/GeomAlgoAPI_Circ2dBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())); -- 2.39.2