Fix crash activating a fullscreened screen
authorJulian Eisel <eiseljulian@gmail.com>
Sat, 4 May 2019 13:12:55 +0000 (15:12 +0200)
committerJulian Eisel <eiseljulian@gmail.com>
Sat, 4 May 2019 13:12:55 +0000 (15:12 +0200)
commitd83a72ec104ce941b8f5a4c4cb63c805917b7efd
tree996f3d30a28a4ed31df1e1d1adccd104ec235957
parent2adf4b401ed289a3f9f3863b1bf5abb52d61f148
Fix crash activating a fullscreened screen

Steps to reproduce were:
* Duplicate some area into new window (shift-click corner triangle)
* Make it fullscreen
* Close the window again
* Activate the added screen from the menu (the one without the
  -nonnormal prefix)
-> Crash (you may have to press "Back to Previous" first though)

When activating a screen, code should check if there's a fullscreen
variant of it and activate that instead. From what I can tell that's
what the code tried to do, but incorrectly.

Same issue as T64045, but things are a bit different for 2.7.
source/blender/editors/screen/screen_edit.c