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); diff --git a/source/blender/src/editipo_mods.c b/source/blender/src/editipo_mods.c index 85119d9a2cc..be403953721 100644 --- a/source/blender/src/editipo_mods.c +++ b/source/blender/src/editipo_mods.c @@ -177,8 +177,8 @@ void swap_visible_editipo(void) ei->flag |= IPO_SELECT; } } - else ei->flag &= ~IPO_VISIBLE; - printf("FSISWAP %d, icu%d %d|%d\n", ei->flag, (int)ei->icu, IPO_VISIBLE,IPO_SELECT); + else + ei->flag &= ~IPO_VISIBLE; ei++; } diff --git a/source/blender/src/space.c b/source/blender/src/space.c index c338efec075..0baa511417e 100644 --- a/source/blender/src/space.c +++ b/source/blender/src/space.c @@ -3854,7 +3854,7 @@ static void changeactionspace(ScrArea *sa, void *spacedata) if(G.v2d==0) return; /* this sets the sub-areas correct, for scrollbars */ - test_view2d(G.v2d, curarea->winx, curarea->winy); + test_view2d(G.v2d, sa->winx, sa->winy); /* action space uses weird matrices... local calculated in a function */ // myortho2(G.v2d->cur.xmin, G.v2d->cur.xmax, G.v2d->cur.ymin, G.v2d->cur.ymax);