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

Minor fix to DropShadow

This commit is contained in:
jules 2013-03-05 18:36:45 +00:00
parent fa941156c2
commit 4ad853c7b9

View file

@ -96,8 +96,8 @@ void DropShadow::drawForPath (Graphics& g, const Path& path) const
jassert (radius > 0);
const Rectangle<int> area ((path.getBounds().getSmallestIntegerContainer() + offset)
.getIntersection (g.getClipBounds())
.expanded (radius + 1, radius + 1));
.expanded (radius + 1)
.getIntersection (g.getClipBounds().expanded (radius + 1)));
if (area.getWidth() > 2 && area.getHeight() > 2)
{