diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-01-27 12:36:28 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-01-27 12:36:28 +0300 |
commit | b9cad87243eb4a3a1adc3aa7337c6c2fed304451 (patch) | |
tree | c732db008b43b58c488ee0cbaaebf864498897c5 /source/blender/windowmanager | |
parent | 107f6cb269c6c3e3b4df2c13dc48f0be352ca4f9 (diff) |
missing check for NULL poll for wmPaintCursorDraw which is allowed.
would crash when in transform and moving the mouse over another window.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_event_system.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c index 309840cf935..e770ced45e3 100644 --- a/source/blender/windowmanager/intern/wm_event_system.c +++ b/source/blender/windowmanager/intern/wm_event_system.c @@ -1346,7 +1346,7 @@ static void wm_paintcursor_tag(bContext *C, wmPaintCursor *pc, ARegion *ar) { if(ar) { for(; pc; pc= pc->next) { - if(pc->poll(C)) { + if(pc->poll == NULL || pc->poll(C)) { wmWindow *win= CTX_wm_window(C); win->screen->do_draw_paintcursor= 1; |