From 63d3055cfb524a3165130b0f2318d8f5c66a1161 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Mon, 21 Feb 2005 14:59:08 +0000 Subject: [PATCH] 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 --- ChangeLog | 6 ++++++ ps/ps-document.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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 -- 2.43.5