fix for crash opening the file selector twice with multiple windows open (when the...
[blender.git] / source / blender / editors / render / render_view.c
index 64a4d47cddc92d8cf56af09b4b20b7fd82e6ac3e..9dfcde6ed0db9ba170ca46ca5762deef71dd6450 100644 (file)
@@ -184,8 +184,7 @@ void render_view_open(bContext *C, int mx, int my)
                        area_was_image = 1;
 
                /* this function returns with changed context */
-               ED_screen_full_newspace(C, CTX_wm_area(C), SPACE_IMAGE);
-               sa= CTX_wm_area(C);
+               sa= ED_screen_full_newspace(C, CTX_wm_area(C), SPACE_IMAGE);
        }
 
        if(!sa) {