diff options
author | Ton Roosendaal <ton@blender.org> | 2005-01-31 21:37:54 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-01-31 21:37:54 +0300 |
commit | 78f133b8a7bc1db280d5d052bf83d7ea959cd1cb (patch) | |
tree | d11f1a84c75be2820736e60239206cac4312ef93 /source/blender/src/drawoops.c | |
parent | 732f608e33df86e973fa3f3c5059a3be0c6cea67 (diff) |
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.
Diffstat (limited to 'source/blender/src/drawoops.c')
-rw-r--r-- | source/blender/src/drawoops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/drawoops.c b/source/blender/src/drawoops.c index bb75986e571..ea15026bd57 100644 --- a/source/blender/src/drawoops.c +++ b/source/blender/src/drawoops.c @@ -405,7 +405,7 @@ void drawoopsspace(ScrArea *sa, void *spacedata) if(soops->type==SO_OUTLINER) draw_outliner(sa, soops); else { boundbox_oops(); - calc_scrollrcts(G.v2d, curarea->winx, curarea->winy); + calc_scrollrcts(sa, G.v2d, curarea->winx, curarea->winy); myortho2(G.v2d->cur.xmin, G.v2d->cur.xmax, G.v2d->cur.ymin, G.v2d->cur.ymax); |