aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sdgui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sdgui.c b/src/sdgui.c
index 0e69ff0..9589fa9 100644
--- a/src/sdgui.c
+++ b/src/sdgui.c
@@ -214,7 +214,7 @@ on_key_press (G_GNUC_UNUSED GtkWidget *widget, GdkEvent *event,
&& event->key.keyval <= GDK_KEY_9)
{
gint n = event->key.keyval - GDK_KEY_0;
- gtk_notebook_set_current_page (notebook, n ? (n - 1) : 10);
+ gtk_notebook_set_current_page (notebook, (n ? n : 10) - 1);
return TRUE;
}
}