Fix crash when rendering with output to full screen and the mouse

cursor not over any area, e.g. on the border between two areas.
This commit is contained in:
2010-06-23 12:41:38 +00:00
parent 46d28a5e8d
commit 4e851ac670

View File

@@ -221,7 +221,7 @@ void screen_set_image_output(bContext *C, int mx, int my)
sa= CTX_wm_area(C);
}
else if(scene->r.displaymode==R_OUTPUT_SCREEN) {
if (CTX_wm_area(C)->spacetype == SPACE_IMAGE)
if (CTX_wm_area(C) && CTX_wm_area(C)->spacetype == SPACE_IMAGE)
area_was_image = 1;
/* this function returns with changed context */