Fix crash setting the screen when one is maximized

This commit is contained in:
Campbell Barton 2015-08-26 11:27:13 +10:00
parent 2e6cbd9bda
commit e066a33314
1 changed files with 2 additions and 1 deletions

View File

@ -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;