summaryrefslogtreecommitdiff
path: root/src/book.c
diff options
context:
space:
mode:
authorAlessio Treglia <alessio@debian.org>2012-04-20 12:04:47 +0200
committerAlessio Treglia <alessio@debian.org>2012-04-20 12:04:47 +0200
commit527dfce44bf3e21c11e1deb21143743e1a4d875e (patch)
tree3cb298b65e3936908ffb8830e5ae67bc3915c7ca /src/book.c
parent33891bc6cb7a84cb77ce1469f187ad6e31b87cee (diff)
parent81e2fef032931d0748d94c7d2625fe07499f77c3 (diff)
Merge tag 'upstream/3.4.1'
Upstream version 3.4.1
Diffstat (limited to 'src/book.c')
-rw-r--r--src/book.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/book.c b/src/book.c
index 1ec2970..711aa1c 100644
--- a/src/book.c
+++ b/src/book.c
@@ -1,4 +1,4 @@
-/* book.c generated by valac 0.15.2, the Vala compiler
+/* book.c generated by valac 0.16.0, the Vala compiler
* generated from book.vala, do not modify */
/*
@@ -528,7 +528,7 @@ static gchar* string_slice (const gchar* self, glong start, glong end) {
static GFile* book_make_indexed_file (Book* self, const gchar* uri, gint i) {
GFile* result = NULL;
- gint _tmp0_;
+ guint _tmp0_ = 0U;
const gchar* _tmp3_;
gchar* _tmp4_ = NULL;
gchar* basename;
@@ -550,8 +550,8 @@ static GFile* book_make_indexed_file (Book* self, const gchar* uri, gint i) {
GFile* _tmp31_;
g_return_val_if_fail (self != NULL, NULL);
g_return_val_if_fail (uri != NULL, NULL);
- _tmp0_ = i;
- if (_tmp0_ == 0) {
+ _tmp0_ = book_get_n_pages (self);
+ if (_tmp0_ == ((guint) 1)) {
const gchar* _tmp1_;
GFile* _tmp2_ = NULL;
_tmp1_ = uri;
@@ -608,7 +608,7 @@ static GFile* book_make_indexed_file (Book* self, const gchar* uri, gint i) {
_tmp25_ = prefix;
_tmp26_ = i;
_tmp27_ = suffix;
- _tmp28_ = g_strdup_printf ("%s-%d%s", _tmp25_, _tmp26_, _tmp27_);
+ _tmp28_ = g_strdup_printf ("%s-%d%s", _tmp25_, _tmp26_ + 1, _tmp27_);
_tmp29_ = _tmp28_;
_tmp30_ = g_file_new_for_uri (_tmp29_);
_tmp31_ = _tmp30_;