[cheese/gnome-3-8] Fix an empty last page in the effects selector



commit 940e7ba0aea69f076008809448e4025cfbd98923
Author: David King <amigadave amigadave com>
Date:   Thu Dec 12 12:36:24 2013 +0000

    Fix an empty last page in the effects selector
    
    If there were exactly the same number of effects available as were shown
    in the effects selector, an empty last page was shown. Fix a condition
    to test that there are more spaces for effects in the selector than
    there are available effects. Fixes bug 720178.

 src/cheese-window.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index 54d7c06..e48c22f 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -1141,7 +1141,7 @@ public class Cheese.MainWindow : Gtk.ApplicationWindow
 
     private bool is_next_effects_page ()
     {
-        return current_effects_page != effects_manager.effects.length () / EFFECTS_PER_PAGE;
+        return (current_effects_page + 1) * EFFECTS_PER_PAGE < effects_manager.effects.length ();
     }
 
     private bool is_previous_effects_page ()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]