diff options
author | Ton Roosendaal <ton@blender.org> | 2006-01-30 14:30:37 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-01-30 14:30:37 +0300 |
commit | ba83c7ffebee150a6ee92ec09e0125013ed358ea (patch) | |
tree | fca0670b6ae02dd04e11fa9c61fa4edcda815940 /source | |
parent | e1936485952092b0ff96485666f86d65fe8f1e58 (diff) |
The patch to pre-emptify the queues for 'clever numbuts' didn't check for
non-existant windows, causing crash for example in Action window for shapes
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/toolbox.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/src/toolbox.c b/source/blender/src/toolbox.c index 88ad8ae4e3e..5576b8b6ae6 100644 --- a/source/blender/src/toolbox.c +++ b/source/blender/src/toolbox.c @@ -1366,8 +1366,12 @@ int do_clever_numbuts(char *name, int tot, int winevent) ScrArea *sa; BWinEvent temp_bevt; for (sa= G.curscreen->areabase.first; sa; sa= sa->next) { - while( bwin_qread( sa->win, &temp_bevt ) ) {} - while( bwin_qread( sa->headwin, &temp_bevt ) ) {} + if(sa->win) { + while( bwin_qread( sa->win, &temp_bevt ) ) {} + } + if(sa->headwin) { + while( bwin_qread( sa->headwin, &temp_bevt ) ) {} + } } /* Done clearing events */ |