Fix crash in RotateScreen when there are no subscreens.
authorSteinar H. Gunderson <sesse@samfundet.no>
Wed, 30 Mar 2005 01:16:52 +0000 (01:16 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Wed, 30 Mar 2005 01:16:52 +0000 (01:16 +0000)
bigscreen/rotatescreen.cpp

index 871a655..c2285ae 100644 (file)
@@ -184,7 +184,7 @@ bool RotateScreen::can_update()
 
        if (since < 3.0)
                return false;
-       if (fade_to_new_info && !subscreens[current_screen].screen->check_invalidated() && since < 8.0)
+       if (fade_to_new_info && subscreens.size() > 0 && !subscreens[current_screen].screen->check_invalidated() && since < 8.0)
                return false;
        return true;
 }