]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix compilation error
authorvsv <vitaly.smetannikov@opencascade.com>
Tue, 26 Apr 2016 09:15:07 +0000 (12:15 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Tue, 26 Apr 2016 09:15:53 +0000 (12:15 +0300)
src/ConstructionPlugin/ConstructionPlugin_Axis.cpp

index 20a11909a88d57c8b2fdf4e3250c57322b544b9f..521d35dfb3b294e86ee6d35da2d820a7caf8f760 100644 (file)
@@ -90,7 +90,7 @@ void ConstructionPlugin_Axis::createAxisByPointAndDirection()
                                                                aZAttr->value()));
     if (aShape1->isVertex() && (!aShape1->isEqual(aVertex))) {
       std::shared_ptr<GeomAPI_Pnt> aStart = GeomAlgoAPI_PointBuilder::point(aShape1);
-      std::shared_ptr<GeomAPI_Pnt> anEnd = GeomAlgoAPI_PointBuilder::point(aVertex);
+      std::shared_ptr<GeomAPI_Pnt> anEnd = aVertex->point();
       if (aStart->distance(anEnd) > ConstructionPlugin_Axis::MINIMAL_LENGTH()) {
         std::shared_ptr<GeomAPI_Edge> anEdge = GeomAlgoAPI_EdgeBuilder::line(aStart, anEnd);