summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/notebook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/notebook.c b/src/notebook.c
index 01f7923..d3583b8 100644
--- a/src/notebook.c
+++ b/src/notebook.c
@@ -395,7 +395,7 @@ mq_notebook_set_current_page(MqNotebook *notebook, gint page_num)
{
MqTabTree *node;
- node = MQ_TAB_TREE(mq_tree_seek(MQ_TREE(notebook->tree), page_num));
+ node = MQ_TAB_TREE(mq_tree_seek(MQ_TREE(notebook->tree), page_num + 1));
notebook->current_page = node->page;
gtk_notebook_set_current_page(GTK_NOTEBOOK(notebook), page_num);
}