TabbedComponent::paint

Hi Jules,

 

I've found some quirks in TabbedComponent::paint

When you got no tabs, it calls tabs->getTabBackgroundColour (getCurrentTabIndex()) which returns a white color

In that case, it should probably not call  g.fillAll (tabs->getTabBackgroundColour (getCurrentTabIndex()));  

 

Thanks,

No.. but what should it do instead? It needs to fill it with some kind of colour..

It already calls  g.fillAll (findColour (backgroundColourId)) right before so no need to draw something on top with a white colour which comes from nowehere

Oh yes, I see. Ok, well I'll just make getTabBackgroundColour return a transparent colour if there are no tabs.