TabbedComponent::paint


#1

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,


#2

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


#3

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


#4

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