Fix for bug #8412: clicking to active tabbed panels could still

go wrong with tabbed panels being hidden.
This commit is contained in:
Brecht Van Lommel
2008-03-03 14:19:58 +00:00
parent d6151609f9
commit 3f0cb42682

View File

@@ -1778,7 +1778,7 @@ static void panel_clicked_tabs(uiBlock *block, int mousex)
width= (int)((float)(panel->sizex - ofsx-10)/nr);
pa= curarea->panels.first;
while(pa) {
if(pa==panel || pa->paneltab==panel) {
if(pa==panel || (pa->active && pa->paneltab==panel)) {
if( (mousex > ofsx+a*width) && (mousex < ofsx+(a+1)*width) ) {
tabsel= pa;
break;