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

Fixed a bug in the previous commit

This commit is contained in:
Tom Poole 2019-09-25 09:54:20 +01:00
parent ae0b8cf406
commit a93ce46534
2 changed files with 2 additions and 2 deletions

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);

View file

@ -386,7 +386,7 @@ public:
destRegion.clear();
if (! rect.isEmpty())
for (auto& r : rects)
for (auto r : rects)
if (rect.intersectRectangle (r))
destRegion.rects.add (r);