diff --git a/modules/juce_graphics/geometry/juce_Line.h b/modules/juce_graphics/geometry/juce_Line.h index 3223f836fd..dfd95cadd9 100644 --- a/modules/juce_graphics/geometry/juce_Line.h +++ b/modules/juce_graphics/geometry/juce_Line.h @@ -249,9 +249,9 @@ public: can be negative or greater than 1.0). @see getPointAlongLine */ - Point getPointAlongLineProportionally (ValueType proportionOfLength) const noexcept + Point getPointAlongLineProportionally (typename Point::FloatType proportionOfLength) const noexcept { - return start + (end - start) * proportionOfLength; + return start + Point ((end - start) * proportionOfLength); } /** Returns the smallest distance between this line segment and a given point.