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:
parent
ae0b8cf406
commit
a93ce46534
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue