Bug found by Bassam; in certain occasions reading a file calls setscreen()

without the (ugly) global curarea being set.
Fixed the crash in his sample by nicely passing on 'current area' as
argument.
This commit is contained in:
2005-01-31 18:37:54 +00:00
parent 732f608e33
commit 78f133b8a7
9 changed files with 13 additions and 13 deletions

View File

@@ -3992,7 +3992,7 @@ void init_v2d_oops(ScrArea *sa, SpaceOops *soops)
if(soops->type==SO_OUTLINER) {
/* outliner space is window size */
calc_scrollrcts(v2d, sa->winx, sa->winy);
calc_scrollrcts(sa, v2d, sa->winx, sa->winy);
v2d->tot.xmax= 0.0;
v2d->tot.ymax= 0.0;