From 56a6bf06cdc2dccb74d16c349b34886402572f27 Mon Sep 17 00:00:00 2001 From: jules Date: Mon, 5 Feb 2018 10:08:33 +0000 Subject: [PATCH] Fixed Drawable clip-paths not being copied correctly --- modules/juce_gui_basics/drawables/juce_Drawable.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/juce_gui_basics/drawables/juce_Drawable.cpp b/modules/juce_gui_basics/drawables/juce_Drawable.cpp index 4cda296fae..935e7a9c04 100644 --- a/modules/juce_gui_basics/drawables/juce_Drawable.cpp +++ b/modules/juce_gui_basics/drawables/juce_Drawable.cpp @@ -41,6 +41,9 @@ Drawable::Drawable (const Drawable& other) setComponentID (other.getComponentID()); setTransform (other.getTransform()); + + if (auto* clipPath = other.drawableClipPath.get()) + setClipPath (clipPath->createCopy()); } Drawable::~Drawable()