diff options
author | Alessio Treglia <alessio@debian.org> | 2012-04-20 12:04:47 +0200 |
---|---|---|
committer | Alessio Treglia <alessio@debian.org> | 2012-04-20 12:04:47 +0200 |
commit | 527dfce44bf3e21c11e1deb21143743e1a4d875e (patch) | |
tree | 3cb298b65e3936908ffb8830e5ae67bc3915c7ca /src/book.vala | |
parent | 33891bc6cb7a84cb77ce1469f187ad6e31b87cee (diff) | |
parent | 81e2fef032931d0748d94c7d2625fe07499f77c3 (diff) |
Merge tag 'upstream/3.4.1'
Upstream version 3.4.1
Diffstat (limited to 'src/book.vala')
-rw-r--r-- | src/book.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/book.vala b/src/book.vala index c931f41..76a1901 100644 --- a/src/book.vala +++ b/src/book.vala @@ -85,7 +85,7 @@ public class Book private File make_indexed_file (string uri, int i) { - if (i == 0) + if (get_n_pages () == 1) return File.new_for_uri (uri); /* Insert index before extension */ @@ -98,7 +98,7 @@ public class Book prefix = uri.slice (0, uri.length - suffix.length); } - return File.new_for_uri ("%s-%d%s".printf (prefix, i, suffix)); + return File.new_for_uri ("%s-%d%s".printf (prefix, i+1, suffix)); } private void save_multi_file (string type, File file) throws Error |