diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-12-26 16:50:32 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-12-26 16:50:32 +0300 |
commit | 63f84cf26d574284a30f2d28c57a6c32823f4425 (patch) | |
tree | f71f8b3033b73d057d15bbf851794e866bd6cbc2 /source/blender | |
parent | bf956bb475c1f064020d3a951bb2ce051f5f7eea (diff) |
crash when running operators with no window
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/windowmanager/intern/wm_event_system.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c index c10b2b2e28c..ff9e135b83c 100644 --- a/source/blender/windowmanager/intern/wm_event_system.c +++ b/source/blender/windowmanager/intern/wm_event_system.c @@ -345,12 +345,13 @@ int WM_operator_name_call(bContext *C, const char *opstring, int context, IDProp { wmOperatorType *ot= WM_operatortype_find(opstring); wmWindow *window= CTX_wm_window(C); - wmEvent *event= window->eventstate; + wmEvent *event; int retval; /* dummie test */ if(ot && C && window) { + event= window->eventstate; switch(context) { case WM_OP_EXEC_REGION_WIN: |