diff options
author | Ton Roosendaal <ton@blender.org> | 2006-04-14 19:29:52 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-04-14 19:29:52 +0400 |
commit | a204ccd2877a4c8eddffdba71f5f9fa0c654935b (patch) | |
tree | 36612485c9cc2b6c10ce5a364bf3d58bdfdf6003 /source/blender/src/drawipo.c | |
parent | 187cc0a5fe854f01dea750db1130e24f7347ab45 (diff) |
#bugfix #3682
NLA and Action window sometimes suffered from very weird scaled display,
caused by making the subwindow very small. Was a missing check for small
sizes.
Also in this commit removal of debug print N_T left in for ipos.
Diffstat (limited to 'source/blender/src/drawipo.c')
-rw-r--r-- | source/blender/src/drawipo.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/src/drawipo.c b/source/blender/src/drawipo.c index 94126bf01f7..11a49790580 100644 --- a/source/blender/src/drawipo.c +++ b/source/blender/src/drawipo.c @@ -506,13 +506,15 @@ void test_view2d(View2D *v2d, int winx, int winy) if(v2d->scroll & L_SCROLL) winx-= SCROLLB; if(v2d->scroll & B_SCROLL) winy-= SCROLLH; + /* header completely closed window */ + if(winy<=0) return; + cur= &v2d->cur; tot= &v2d->tot; dx= cur->xmax-cur->xmin; dy= cur->ymax-cur->ymin; - /* Reevan's test */ if (v2d->keepzoom & V2D_LOCKZOOM_Y) v2d->cur.ymax=v2d->cur.ymin+((float)winy); |