1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fixed a Rectangle intersection issue

This commit is contained in:
Tom Poole 2019-09-24 14:48:24 +01:00
parent 95396b150d
commit ae0b8cf406

View file

@ -678,7 +678,7 @@ public:
/** Clips a rectangle so that it lies only within this one.
Returns false if the two rectangles didn't overlap.
*/
bool intersectRectangle (Rectangle<ValueType>& rectangleToClip) const noexcept
bool intersectRectangle (Rectangle<ValueType> rectangleToClip) const noexcept
{
return intersectRectangle (rectangleToClip.pos.x, rectangleToClip.pos.y,
rectangleToClip.w, rectangleToClip.h);