From: Marco Pesenti Gritti Date: Mon, 21 Feb 2005 14:59:08 +0000 (+0000) Subject: ps pages are 0 based, convert X-Git-Tag: EVINCE_0_1_5~32 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=63d3055cfb524a3165130b0f2318d8f5c66a1161;p=evince.git ps pages are 0 based, convert 2005-02-21 Marco Pesenti Gritti * ps/ps-document.c: (ps_document_set_page), (ps_document_get_page): ps pages are 0 based, convert --- diff --git a/ChangeLog b/ChangeLog index 1cfade30..00eb23e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-02-21 Marco Pesenti Gritti + + * ps/ps-document.c: (ps_document_set_page), (ps_document_get_page): + + ps pages are 0 based, convert + 2005-02-21 Marco Pesenti Gritti * ps/ps-document.c: (ps_document_class_init), (ps_document_load): diff --git a/ps/ps-document.c b/ps/ps-document.c index fda942b2..1df82e26 100644 --- a/ps/ps-document.c +++ b/ps/ps-document.c @@ -1734,7 +1734,7 @@ static void ps_document_set_page (EvDocument *document, int page) { - ps_document_goto_page (PS_DOCUMENT (document), page); + ps_document_goto_page (PS_DOCUMENT (document), page - 1); } static int @@ -1744,7 +1744,7 @@ ps_document_get_page (EvDocument *document) g_return_val_if_fail (ps != NULL, -1); - return ps->current_page; + return ps->current_page + 1; } static gboolean