Commit 40dd2b46 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Fix off-by-one.

parent c25f8923
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment