1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-09 04:30:09 +00:00

D2D: Fix intersection test for Line

This commit is contained in:
reuk 2024-04-22 18:27:05 +01:00
parent 203e99c57d
commit bfccf7f81c
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -347,7 +347,7 @@ public:
bool doesIntersectClipList (Line<float> r) const noexcept
{
return doesIntersectClipList (Rectangle { r.getStart(), r.getEnd() });
return doesIntersectClipList (Rectangle { r.getStart(), r.getEnd() }.expanded (1.0f));
}
bool doesIntersectClipList (const RectangleList<float>& other) const noexcept