summaryrefslogtreecommitdiff
path: root/src/GsWidget.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-02-10 18:49:29 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-02-10 18:49:29 +0100
commitc0382411064786243e6b6deaed64d240618e6fba (patch)
tree7f0a2985125b63d74f780b12d658e1b2f7decfd4 /src/GsWidget.cxx
parent9e8cec5ec9ebde16efbd35dcf69f8f4593b5d1f1 (diff)
use page numbers starting with 1 in interface
Diffstat (limited to 'src/GsWidget.cxx')
-rw-r--r--src/GsWidget.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GsWidget.cxx b/src/GsWidget.cxx
index c71ab11..6f5eb44 100644
--- a/src/GsWidget.cxx
+++ b/src/GsWidget.cxx
@@ -168,7 +168,7 @@ int GsWidget::load() {
pid_t pid;
if (dsc) {
- return load_page(0);
+ return load_page(1);
}
if (in_fd < 0) {
@@ -208,7 +208,7 @@ GsWidget::load_page(int p) {
return 1;
}
- if (p < 0 || p >= dsc->get_pages()) {
+ if (p < 1 || p > dsc->get_pages()) {
fprintf(stderr, "Page %d not found in document\n", p);
return 1;
}