diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-02-10 19:00:59 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-02-10 19:00:59 +0100 |
commit | db2cfcad3a65365b44977dded86b82c26128a928 (patch) | |
tree | 0633b1da9130a784a3e472366345619817ef92a4 /src | |
parent | 5ce0b2c6a402ad4eee4ad8ff37a1a058a27be1b5 (diff) |
interface now uses page numbers starting with 1
Diffstat (limited to 'src')
-rw-r--r-- | src/flpsed.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/flpsed.cxx b/src/flpsed.cxx index 391134c..a373cf4 100644 --- a/src/flpsed.cxx +++ b/src/flpsed.cxx @@ -80,9 +80,9 @@ char filename[256] = ""; void page_sel_cb(Fl_Widget *w, void *) { - int p = page_sel->value() - 1; - if (p >= 0) { - psed_p->load_page(page_sel->value() - 1); + int p = page_sel->value(); + if (p > 0) { + psed_p->load_page(page_sel->value()); } } @@ -100,7 +100,7 @@ void page_sel_fill() { snprintf(buf, sizeof(buf), "%d", i); page_sel->add(buf); } - page_sel->select(psed_p->get_page() + 1); + page_sel->select(psed_p->get_page()); } void open_cb() { @@ -196,12 +196,12 @@ void import_cb() { void first_cb() { psed_p->load(); - page_sel->select(psed_p->get_page() + 1); + page_sel->select(psed_p->get_page()); } void next_cb() { psed_p->next(); - page_sel->select(psed_p->get_page() + 1); + page_sel->select(psed_p->get_page()); } void quit_cb() { |