mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 09:16:00 +01:00
Fix off-by-one.
This commit is contained in:
parent
c25f892385
commit
40dd2b469b
1 changed files with 1 additions and 1 deletions
2
utils.c
2
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue