Fix crash when saving render from temporarily maximized render window

Steps to reproduce were:
* Start with factory defaults
* Set "Render in" to "Maximized Area"
* Render
* Open "Save as"
* Click Cancel

Mistake in  78d2ce19c4. Was using the wrong area pointer, which I think
didn't make a difference in most cases, but here it did.
This commit is contained in:
Julian Eisel 2020-12-27 15:08:34 +01:00
parent 7916c59304
commit e56fe47748
1 changed files with 1 additions and 1 deletions

View File

@ -2263,7 +2263,7 @@ static int wm_handler_fileselect_do(bContext *C,
continue;
}
if (ctx_area->full) {
if (file_area->full) {
/* Users should not be able to maximize/fullscreen an area in a temporary screen. So if
* there's a maximized file browser in a temporary screen, it was likely opened by
* #EVT_FILESELECT_FULL_OPEN. */