diff --git a/modules/juce_graphics/geometry/juce_Rectangle.h b/modules/juce_graphics/geometry/juce_Rectangle.h index cb1ef4b7e5..d3f3e7b411 100644 --- a/modules/juce_graphics/geometry/juce_Rectangle.h +++ b/modules/juce_graphics/geometry/juce_Rectangle.h @@ -787,8 +787,8 @@ public: } /** Casts this rectangle to a Rectangle. - This uses roundToInt for rounding the bounds (if this rectangle uses floating point) - or just returns a copy (if this rectangle uses integers as well). + This uses roundToInt to snap x, y, width and height to the nearest integer (losing precision). + If the rectangle already uses integers, this will simply return a copy. @see getSmallestIntegerContainer() */ Rectangle toNearestInt() const noexcept