From 81e2fef032931d0748d94c7d2625fe07499f77c3 Mon Sep 17 00:00:00 2001 From: Alessio Treglia Date: Fri, 20 Apr 2012 12:04:46 +0200 Subject: Imported Upstream version 3.4.1 --- src/book.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/book.c') 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_; -- cgit v1.2.3