summaryrefslogtreecommitdiff
path: root/src/book.c
diff options
context:
space:
mode:
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_;