From 4ad853c7b977c15cd252ee06e2d9e110b3be93dc Mon Sep 17 00:00:00 2001 From: jules Date: Tue, 5 Mar 2013 18:36:45 +0000 Subject: [PATCH] Minor fix to DropShadow --- modules/juce_graphics/effects/juce_DropShadowEffect.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {