From: vsv Date: Tue, 26 Apr 2016 09:15:07 +0000 (+0300) Subject: Fix compilation error X-Git-Tag: V_2.3.0~103^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=65d865bc455c338659fd5c8fc6ec8dfb66a5c301;p=modules%2Fshaper.git Fix compilation error --- diff --git a/src/ConstructionPlugin/ConstructionPlugin_Axis.cpp b/src/ConstructionPlugin/ConstructionPlugin_Axis.cpp index 20a11909a..521d35dfb 100644 --- a/src/ConstructionPlugin/ConstructionPlugin_Axis.cpp +++ b/src/ConstructionPlugin/ConstructionPlugin_Axis.cpp @@ -90,7 +90,7 @@ void ConstructionPlugin_Axis::createAxisByPointAndDirection() aZAttr->value())); if (aShape1->isVertex() && (!aShape1->isEqual(aVertex))) { std::shared_ptr aStart = GeomAlgoAPI_PointBuilder::point(aShape1); - std::shared_ptr anEnd = GeomAlgoAPI_PointBuilder::point(aVertex); + std::shared_ptr anEnd = aVertex->point(); if (aStart->distance(anEnd) > ConstructionPlugin_Axis::MINIMAL_LENGTH()) { std::shared_ptr anEdge = GeomAlgoAPI_EdgeBuilder::line(aStart, anEnd);