Fix crash setting the screen when one is maximized
This commit is contained in:
parent
2e6cbd9bda
commit
e066a33314
|
@ -1487,7 +1487,8 @@ void ED_screen_set(bContext *C, bScreen *sc)
|
|||
return;
|
||||
|
||||
|
||||
if (sc->state == SCREENFULL) { /* find associated full */
|
||||
if (ELEM(sc->state, SCREENMAXIMIZED, SCREENFULL)) {
|
||||
/* find associated full */
|
||||
bScreen *sc1;
|
||||
for (sc1 = bmain->screen.first; sc1; sc1 = sc1->id.next) {
|
||||
ScrArea *sa = sc1->areabase.first;
|
||||
|
|
Loading…
Reference in New Issue