Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-03-03 17:19:58 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-03-03 17:19:58 +0300
commit3f0cb4268247e029390336a59174907bee33db79 (patch)
treee642a7a92efa39d6c92a029a2312b1129ffc79d3 /source/blender/src/interface_panel.c
parentd6151609f97753fb17121a2009cc44b4f8df59c5 (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.c2
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;