diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-03-03 17:19:58 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-03-03 17:19:58 +0300 |
commit | 3f0cb4268247e029390336a59174907bee33db79 (patch) | |
tree | e642a7a92efa39d6c92a029a2312b1129ffc79d3 /source/blender/src/interface_panel.c | |
parent | d6151609f97753fb17121a2009cc44b4f8df59c5 (diff) |
Fix for bug #8412: clicking to active tabbed panels could still
go wrong with tabbed panels being hidden.
Diffstat (limited to 'source/blender/src/interface_panel.c')
-rw-r--r-- | source/blender/src/interface_panel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/interface_panel.c b/source/blender/src/interface_panel.c index 5714e26d77e..0752a5dd198 100644 --- a/source/blender/src/interface_panel.c +++ b/source/blender/src/interface_panel.c @@ -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; |