From 91eb19e6f57e039568bef8d8d2cfe1d38b93f320 Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 24 Mar 2017 08:56:21 +0000 Subject: [PATCH] Added a call to sendLookAndFeelChange() before making new tab content component visible in TabbedComponent::changeCallback --- modules/juce_gui_basics/layout/juce_TabbedComponent.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/juce_gui_basics/layout/juce_TabbedComponent.cpp b/modules/juce_gui_basics/layout/juce_TabbedComponent.cpp index 25d7165898..b81ff32bcd 100644 --- a/modules/juce_gui_basics/layout/juce_TabbedComponent.cpp +++ b/modules/juce_gui_basics/layout/juce_TabbedComponent.cpp @@ -297,6 +297,7 @@ void TabbedComponent::changeCallback (const int newCurrentTabIndex, const String // do these ops as two stages instead of addAndMakeVisible() so that the // component has always got a parent when it gets the visibilityChanged() callback addChildComponent (panelComponent); + panelComponent->sendLookAndFeelChange(); panelComponent->setVisible (true); panelComponent->toFront (true); }