From ce513dc37db4748c918ffe73cc8e255eeb4ecf3a Mon Sep 17 00:00:00 2001 From: jules Date: Mon, 25 Jun 2012 11:11:52 +0100 Subject: [PATCH] ToolbarButton fix. --- modules/juce_gui_basics/buttons/juce_ToolbarButton.cpp | 1 + modules/juce_gui_basics/widgets/juce_Toolbar.cpp | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/juce_gui_basics/buttons/juce_ToolbarButton.cpp b/modules/juce_gui_basics/buttons/juce_ToolbarButton.cpp index 599a6280a6..dbb1a9b6fe 100644 --- a/modules/juce_gui_basics/buttons/juce_ToolbarButton.cpp +++ b/modules/juce_gui_basics/buttons/juce_ToolbarButton.cpp @@ -73,6 +73,7 @@ void ToolbarButton::updateDrawable() { if (currentImage != nullptr) { + currentImage->setInterceptsMouseClicks (false, false); currentImage->setTransformToFit (getContentArea().toFloat(), RectanglePlacement::centred); currentImage->setAlpha (isEnabled() ? 1.0f : 0.5f); } diff --git a/modules/juce_gui_basics/widgets/juce_Toolbar.cpp b/modules/juce_gui_basics/widgets/juce_Toolbar.cpp index 38454336e2..0cd09194dc 100644 --- a/modules/juce_gui_basics/widgets/juce_Toolbar.cpp +++ b/modules/juce_gui_basics/widgets/juce_Toolbar.cpp @@ -36,10 +36,6 @@ public: { } - ~ToolbarSpacerComp() - { - } - bool getToolbarItemSizes (int toolbarThickness, bool /*isToolbarVertical*/, int& preferredSize, int& minSize, int& maxSize) {