From bea45f84db2b57868e1941455df0cb51e8be2213 Mon Sep 17 00:00:00 2001 From: tpoole Date: Mon, 5 Sep 2016 10:07:32 +0100 Subject: [PATCH] Fixed SVG child-transform rendering bug. --- modules/juce_gui_basics/drawables/juce_DrawableComposite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_gui_basics/drawables/juce_DrawableComposite.cpp b/modules/juce_gui_basics/drawables/juce_DrawableComposite.cpp index 0c0f6737d1..8b1caf4154 100644 --- a/modules/juce_gui_basics/drawables/juce_DrawableComposite.cpp +++ b/modules/juce_gui_basics/drawables/juce_DrawableComposite.cpp @@ -192,7 +192,7 @@ void DrawableComposite::updateBoundsToFitChildren() for (int i = getNumChildComponents(); --i >= 0;) if (Component* const c = getChildComponent(i)) - c->setBounds (c->getBounds() - delta); + c->setBounds (c->getBoundsInParent() - delta); } setBounds (childArea);