diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-02-10 18:53:53 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-02-10 18:53:53 +0100 |
commit | 3854f81a2836faf2b793c73777ba4ef372861123 (patch) | |
tree | cde7998c94be90467db753f6d2d5e2d0277e66d7 /src | |
parent | c0382411064786243e6b6deaed64d240618e6fba (diff) |
set page before check for offscreen (needed for reload)
Diffstat (limited to 'src')
-rw-r--r-- | src/GsWidget.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/GsWidget.cxx b/src/GsWidget.cxx index 6f5eb44..494df6a 100644 --- a/src/GsWidget.cxx +++ b/src/GsWidget.cxx @@ -216,6 +216,8 @@ GsWidget::load_page(int p) { fl_cursor(FL_CURSOR_WAIT); kill_gs(); + page = p; + if (!offscreen) { reload_needed = 1; return 0; @@ -241,7 +243,6 @@ GsWidget::load_page(int p) { size_t len; gs_pid = pid; - page = p; close(pdes[0]); |