diff options
author | Ton Roosendaal <ton@blender.org> | 2009-08-16 17:51:33 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-08-16 17:51:33 +0400 |
commit | bbf24a2243fa414bf53b2d584dd31304a8b3662f (patch) | |
tree | f23776d8a9ddc4c49fe7b59135847f090ad3787d /source/blender/editors/screen | |
parent | d823172d6d7121ceac9fd34d7f4a974675253706 (diff) |
2.5
Small fix: region-zones (currently triangles) overlapped when closed in
cases. Happened for 3d window toolbar for example.
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r-- | source/blender/editors/screen/area.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index 96ad9039dc1..296c38fa51a 100644 --- a/source/blender/editors/screen/area.c +++ b/source/blender/editors/screen/area.c @@ -499,7 +499,7 @@ static void region_azone_initialize(ScrArea *sa, ARegion *ar, char edge) /* if more azones on 1 spot, set offset */ for(azt= sa->actionzones.first; azt; azt= azt->next) { if(az!=azt) { - if(az->x1==azt->x1 && az->y1==azt->y1) { + if( ABS(az->x1-azt->x1) < 2 && ABS(az->y1-azt->y1) < 2) { if(edge=='t' || edge=='b') { az->x1+= AZONESPOT; az->x2+= AZONESPOT; |