diff --git a/modules/juce_graphics/geometry/juce_Path.cpp b/modules/juce_graphics/geometry/juce_Path.cpp index 851e65c587..fc809fa206 100644 --- a/modules/juce_graphics/geometry/juce_Path.cpp +++ b/modules/juce_graphics/geometry/juce_Path.cpp @@ -970,7 +970,7 @@ bool Path::contains (Point point, float tolerance) const return contains (point.x, point.y, tolerance); } -bool Path::intersectsLine (Line line, float tolerance) +bool Path::intersectsLine (Line line, float tolerance) const { PathFlatteningIterator i (*this, AffineTransform(), tolerance); Point intersection; diff --git a/modules/juce_graphics/geometry/juce_Path.h b/modules/juce_graphics/geometry/juce_Path.h index b9a5ee5f7e..893fa435b5 100644 --- a/modules/juce_graphics/geometry/juce_Path.h +++ b/modules/juce_graphics/geometry/juce_Path.h @@ -144,7 +144,7 @@ public: outside the path's boundary. */ bool intersectsLine (Line line, - float tolerance = defaultToleranceForTesting); + float tolerance = defaultToleranceForTesting) const; /** Cuts off parts of a line to keep the parts that are either inside or outside this path.