summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-04-14 06:34:38 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-04-14 06:34:38 +0200
commit2fb926c2bb3fd45a2d1428db6a44ce9da8b9a85d (patch)
tree90cf56514efc1c139e2ae48ef23f12266804b080 /src
parent5eb1c7b74e7f84cab2a51b2d41f71b543b95f6c8 (diff)
Imported Upstream version 3.16.1.1upstream/3.16.1.1
Diffstat (limited to 'src')
-rw-r--r--src/ui.c2
-rw-r--r--src/ui.vala2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ui.c b/src/ui.c
index 266a2f2..d2a437c 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -7363,7 +7363,7 @@ static void user_interface_page_removed_cb (UserInterface* self, Book* book, Pag
#line 1613 "/home/bob/bzr/simple-scan/3.16/src/ui.vala"
_tmp6_ = _tmp5_;
#line 1613 "/home/bob/bzr/simple-scan/3.16/src/ui.vala"
- if (_tmp6_ == ((guint) 1)) {
+ if (_tmp6_ == ((guint) 0)) {
#line 1614 "/home/bob/bzr/simple-scan/3.16/src/ui.vala"
user_interface_add_default_page (self);
#line 7359 "ui.c"
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 ();