diff options
| author | Campbell Barton <ideasman42@gmail.com> | 2011-09-21 08:31:39 +0000 |
|---|---|---|
| committer | Campbell Barton <ideasman42@gmail.com> | 2011-09-21 08:31:39 +0000 |
| commit | 2efaee4cee14b42915dc02aebf79a44bc8aecac3 (patch) | |
| tree | 445a5c9c52e1475a9393839029889fa2deb1f1c3 /src/snapped-curve.cpp | |
| parent | fix for cmake linking (diff) | |
| download | inkscape-2efaee4cee14b42915dc02aebf79a44bc8aecac3.tar.gz inkscape-2efaee4cee14b42915dc02aebf79a44bc8aecac3.zip | |
initialize value as const (clang complains about this)
(bzr r10643)
Diffstat (limited to 'src/snapped-curve.cpp')
| -rw-r--r-- | src/snapped-curve.cpp | 2 |
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) { |
