From ba6b3eec9a4345f50f214cfd4c16c523cece7114 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Sun, 10 Mar 2019 13:44:17 +0100 Subject: Fix insert_page math (++ → +2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- badwolf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/badwolf.c b/badwolf.c index 14cf03b..84a825e 100644 --- a/badwolf.c +++ b/badwolf.c @@ -320,7 +320,7 @@ int badwolf_new_tab(GtkNotebook *notebook, GtkWidget *box) gint current_page = gtk_notebook_get_current_page(notebook); gtk_widget_show_all(box); - if(gtk_notebook_insert_page(notebook, box, NULL, current_page++) == -1) { + if(gtk_notebook_insert_page(notebook, box, NULL, (current_page+2)) == -1) { return -1; } -- cgit v1.3.1-23-gd82d