summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/snapped-curve.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/snapped-curve.cpp b/src/snapped-curve.cpp
index 25b03428a..9cb547609 100644
--- a/src/snapped-curve.cpp
+++ b/src/snapped-curve.cpp
@@ -123,7 +123,7 @@ Inkscape::SnappedPoint Inkscape::SnappedCurve::intersect(SnappedLine const &line
// (for this we will create a 2e6 pixels long linesegment, with t running from -1e6 to 1e6; this should be long
// enough for any practical purpose)
Geom::LineSegment line_segm = line.getLine().transformed(dt2doc).segment(-1e6, 1e6); //
- Geom::Curve *line_as_curve = dynamic_cast<Geom::Curve const*>(&line_segm);
+ const Geom::Curve *line_as_curve = dynamic_cast<Geom::Curve const*>(&line_segm);
Geom::Crossings cs = crossings(*(this->_curve), *line_as_curve);
if (cs.size() > 0) {