From: Simone Rota Date: Fri, 11 May 2007 17:21:31 +0000 (+0200) Subject: Fixed an off-by-one error that enabled the "next" button on the last page. X-Git-Url: http://git.code-monkey.de/?a=commitdiff_plain;h=e8ff9ad0234828d58e8b4cf81680b7650d6b43b3;p=raktpdf.git Fixed an off-by-one error that enabled the "next" button on the last page. --- diff --git a/src/rakt-window.c b/src/rakt-window.c index 9f45644..13b35d8 100644 --- a/src/rakt-window.c +++ b/src/rakt-window.c @@ -141,7 +141,7 @@ render_page (RaktWindow *window) n_pages = poppler_document_get_n_pages (priv->document); gtk_action_set_sensitive (priv->action_prev, priv->page_no > 0); - gtk_action_set_sensitive (priv->action_next, priv->page_no < n_pages); + gtk_action_set_sensitive (priv->action_next, priv->page_no < n_pages - 1); page = poppler_document_get_page (priv->document, priv->page_no);