From 01e142161330432fe4eb2c68c5e4d8030e50eeac Mon Sep 17 00:00:00 2001 From: jules Date: Wed, 5 Nov 2014 10:28:46 +0000 Subject: [PATCH] Made sure that the DrawableImage copy constructor also copies the component bounds. --- modules/juce_gui_basics/drawables/juce_DrawableImage.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/juce_gui_basics/drawables/juce_DrawableImage.cpp b/modules/juce_gui_basics/drawables/juce_DrawableImage.cpp index 7c29dee045..d609011a19 100644 --- a/modules/juce_gui_basics/drawables/juce_DrawableImage.cpp +++ b/modules/juce_gui_basics/drawables/juce_DrawableImage.cpp @@ -37,6 +37,7 @@ DrawableImage::DrawableImage (const DrawableImage& other) overlayColour (other.overlayColour), bounds (other.bounds) { + setBounds (other.getBounds()); } DrawableImage::~DrawableImage()