diff options
author | Juho Vepsalainen <bebraw@gmail.com> | 2007-06-09 09:56:43 +0400 |
---|---|---|
committer | Juho Vepsalainen <bebraw@gmail.com> | 2007-06-09 09:56:43 +0400 |
commit | 274b504d66938204a547a0aca7e998d108d0b881 (patch) | |
tree | 2fb3d9ef974e6634ef695a1272723e2dabe40846 /source/blender | |
parent | ca1ccb84bc39c7071949527ffba3ad31f1be2281 (diff) |
Fix for bug #6828:
It was missing checks for screen status.
Log for my previous commit.
Sorry for the hassle.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/src/editscreen.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/src/editscreen.c b/source/blender/src/editscreen.c index b9487c0a954..6bca8b32322 100644 --- a/source/blender/src/editscreen.c +++ b/source/blender/src/editscreen.c @@ -1400,7 +1400,8 @@ void screenmain(void) bScreen *sc= G.curscreen->id.next; /* if screen is last, set it to first */ - if(sc == NULL) sc= G.main->screen.first; + if(sc == NULL) + sc= G.main->screen.first; if(is_allowed_to_change_screen(sc)) setscreen(sc); g_activearea= NULL; @@ -1412,7 +1413,8 @@ void screenmain(void) bScreen *sc= G.curscreen->id.prev; /* if screen is first, set it to last */ - if(sc == NULL) sc= G.main->screen.last; + if(sc == NULL) + sc= G.main->screen.last; if(is_allowed_to_change_screen(sc)) setscreen(sc); g_activearea= NULL; |