From 3854f81a2836faf2b793c73777ba4ef372861123 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Fri, 10 Feb 2006 18:53:53 +0100 Subject: set page before check for offscreen (needed for reload) --- src/GsWidget.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]); -- cgit v1.2.3