diff --git a/modules/juce_graphics/effects/juce_DropShadowEffect.cpp b/modules/juce_graphics/effects/juce_DropShadowEffect.cpp index 6db10c9f2f..e26fb077a2 100644 --- a/modules/juce_graphics/effects/juce_DropShadowEffect.cpp +++ b/modules/juce_graphics/effects/juce_DropShadowEffect.cpp @@ -96,8 +96,8 @@ void DropShadow::drawForPath (Graphics& g, const Path& path) const jassert (radius > 0); const Rectangle 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) {