diff --git a/modules/juce_graphics/geometry/juce_Rectangle.h b/modules/juce_graphics/geometry/juce_Rectangle.h index a8f45e2f8a..fbb297164f 100644 --- a/modules/juce_graphics/geometry/juce_Rectangle.h +++ b/modules/juce_graphics/geometry/juce_Rectangle.h @@ -499,7 +499,7 @@ public: by the specified amount and returning the section that was removed. E.g. if this rectangle is (100, 100, 300, 300) and amountToRemove is 50, this will - return (250, 100, 50, 300) and leave this rectangle as (100, 100, 250, 300). + return (350, 100, 50, 300) and leave this rectangle as (100, 100, 250, 300). If amountToRemove is greater than the width of this rectangle, it'll be clipped to that value. @@ -516,7 +516,7 @@ public: by the specified amount and returning the section that was removed. E.g. if this rectangle is (100, 100, 300, 300) and amountToRemove is 50, this will - return (100, 250, 300, 50) and leave this rectangle as (100, 100, 300, 250). + return (100, 350, 300, 50) and leave this rectangle as (100, 100, 300, 250). If amountToRemove is greater than the height of this rectangle, it'll be clipped to that value.