Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2005-01-31 21:37:54 +0300
committerTon Roosendaal <ton@blender.org>2005-01-31 21:37:54 +0300
commit78f133b8a7bc1db280d5d052bf83d7ea959cd1cb (patch)
treed11f1a84c75be2820736e60239206cac4312ef93 /source/blender/src/outliner.c
parent732f608e33df86e973fa3f3c5059a3be0c6cea67 (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/outliner.c')
-rw-r--r--source/blender/src/outliner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/outliner.c b/source/blender/src/outliner.c
index b3c00331e2e..d2a2fd94428 100644
--- a/source/blender/src/outliner.c
+++ b/source/blender/src/outliner.c
@@ -2224,7 +2224,7 @@ void draw_outliner(ScrArea *sa, SpaceOops *soops)
int sizey;
short ofsx, ofsy;
- calc_scrollrcts(G.v2d, sa->winx, sa->winy);
+ calc_scrollrcts(sa, G.v2d, sa->winx, sa->winy);
if(sa->winx>SCROLLB+10 && sa->winy>SCROLLH+10) {
if(G.v2d->scroll) {