crash when running operators with no window

This commit is contained in:
2008-12-26 13:50:32 +00:00
parent bf956bb475
commit 63f84cf26d

View File

@@ -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: