From 40dd2b469b0c883e6278769577021ce41d692a62 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Wed, 20 Jun 2012 16:11:00 +0200 Subject: [PATCH] Fix off-by-one. --- utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.c b/utils.c index 6323fe3..5dd602c 100644 --- a/utils.c +++ b/utils.c @@ -156,7 +156,7 @@ document_index_build(GtkTreeModel* model, GtkTreeIter* parent, gchar* description = NULL; if (type == ZATHURA_LINK_GOTO_DEST) { - description = g_strdup_printf("Page %d", target.page_number); + description = g_strdup_printf("Page %d", target.page_number + 1); } else { description = g_strdup(target.value); }