From e3e93b9ef2ec8451d7b6237be31ed9bcdebe9459 Mon Sep 17 00:00:00 2001
From: Johannes Hofmann <Johannes.Hofmann@gmx.de>
Date: Wed, 15 Feb 2006 19:47:33 +0100
Subject: fix page counting in non DSC case

---
 src/GsWidget.cxx     | 2 +-
 src/PSEditWidget.cxx | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

(limited to 'src')

diff --git a/src/GsWidget.cxx b/src/GsWidget.cxx
index 0b6bdad..d92b8ba 100644
--- a/src/GsWidget.cxx
+++ b/src/GsWidget.cxx
@@ -193,7 +193,7 @@ int GsWidget::load() {
     exec_gs();
   } else {
     gs_pid = pid;
-    page = 1;
+    page = 0;
   }
   
   return 0;
diff --git a/src/PSEditWidget.cxx b/src/PSEditWidget.cxx
index d67ac94..e3c1307 100644
--- a/src/PSEditWidget.cxx
+++ b/src/PSEditWidget.cxx
@@ -130,7 +130,7 @@ void PSEditWidget::new_text(int x1, int y1, const char *s, int p) {
 }
 
 void PSEditWidget::new_text(int x1, int y1, const char *s) {
-  new_text(x1, y1, s, page);
+  new_text(x1, y1, s, get_page());
 }
 
 int PSEditWidget::set_cur_text(int x1, int y1) {
-- 
cgit v1.2.3