[simple-scan/gnome-3-16: 5/12] Fix logic for adding blank page on page removal. This was a regression from the page re-ordering cha



commit 43e7fa41c84c3e01115c512c2090e95c19a35236
Author: Robert Ancell <robert ancell canonical com>
Date:   Tue Apr 14 11:31:27 2015 +1200

    Fix logic for adding blank page on page removal. This was a regression from the page re-ordering changes 
in revision 701

 src/ui.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ui.vala b/src/ui.vala
index 0a80789..362c53b 100644
--- a/src/ui.vala
+++ b/src/ui.vala
@@ -1610,7 +1610,7 @@ public class UserInterface : Gtk.ApplicationWindow
         page.scan_direction_changed.disconnect (page_scan_direction_changed_cb);
 
         /* If this is the last page add a new blank one */
-        if (book.n_pages == 1)
+        if (book.n_pages == 0)
             add_default_page ();
 
         update_page_menu ();


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