From c21e90a2a79812e12923c2a088eda25576444152 Mon Sep 17 00:00:00 2001 From: jules Date: Mon, 1 Jul 2013 22:39:06 +0100 Subject: [PATCH] Added missing repaint in ShapeButton. --- modules/juce_gui_basics/buttons/juce_ShapeButton.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/juce_gui_basics/buttons/juce_ShapeButton.cpp b/modules/juce_gui_basics/buttons/juce_ShapeButton.cpp index 049edda693..d25ae29305 100644 --- a/modules/juce_gui_basics/buttons/juce_ShapeButton.cpp +++ b/modules/juce_gui_basics/buttons/juce_ShapeButton.cpp @@ -76,6 +76,8 @@ void ShapeButton::setShape (const Path& newShape, setSize (1 + (int) (newBounds.getWidth() + outlineWidth), 1 + (int) (newBounds.getHeight() + outlineWidth)); } + + repaint(); } void ShapeButton::paintButton (Graphics& g, bool isMouseOverButton, bool isButtonDown)