X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_IntersectionPoint.cpp;h=a71c02499b3d20b8a3c95fcaab2fdbaed182e4a8;hb=b5893b0a30fac08134c24de4565cb513a43affa6;hp=d32b9a4c6cf648632622e61b4a323361fd6b4aa6;hpb=bb5bba6e567f9cae87f9fbaf584d2d0502ec372e;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_IntersectionPoint.cpp b/src/SketchPlugin/SketchPlugin_IntersectionPoint.cpp index d32b9a4c6..a71c02499 100644 --- a/src/SketchPlugin/SketchPlugin_IntersectionPoint.cpp +++ b/src/SketchPlugin/SketchPlugin_IntersectionPoint.cpp @@ -58,7 +58,7 @@ void SketchPlugin_IntersectionPoint::computePoint() std::shared_ptr anEdge; if(aLineAttr && aLineAttr->value() && aLineAttr->value()->isEdge()) { anEdge = std::shared_ptr(new GeomAPI_Edge(aLineAttr->value())); - } else if(aLineAttr->context() && aLineAttr->context()->shape() && + } else if(aLineAttr->context() && aLineAttr->context()->shape() && aLineAttr->context()->shape()->isEdge()) { anEdge = std::shared_ptr(new GeomAPI_Edge(aLineAttr->context()->shape())); } @@ -72,7 +72,7 @@ void SketchPlugin_IntersectionPoint::computePoint() if (!anIntersection) return; - std::shared_ptr aCoordAttr = + std::shared_ptr aCoordAttr = std::dynamic_pointer_cast(attribute(COORD_ID())); aCoordAttr->setValue(sketch()->to2D(anIntersection)); }