From 8daac0c3e9f3da80974b4e28ba03570b9cd67bf8 Mon Sep 17 00:00:00 2001 From: yangxx Date: Tue, 28 Oct 2003 20:39:22 +0000 Subject: [PATCH] git-svn-id: http://ltt.polymtl.ca/svn@325 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/lttv/modules/gui/mainWin/src/gtkcustom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ltt/branches/poly/lttv/modules/gui/mainWin/src/gtkcustom.c b/ltt/branches/poly/lttv/modules/gui/mainWin/src/gtkcustom.c index f9b35826..1d4c68aa 100644 --- a/ltt/branches/poly/lttv/modules/gui/mainWin/src/gtkcustom.c +++ b/ltt/branches/poly/lttv/modules/gui/mainWin/src/gtkcustom.c @@ -107,7 +107,7 @@ void gtk_custom_set_adjust(GtkCustom * custom, gboolean first_time) TimeWindow time_window; TimeInterval *time_span; double tmp, start; - double range = 5; + double range = 0; get_time_window(custom->mw,&time_window); if(first_time){ @@ -134,7 +134,7 @@ void gtk_custom_set_adjust(GtkCustom * custom, gboolean first_time) if(custom->hadjust->page_increment >= tmp - range) custom->hadjust->value = custom->hadjust->lower; - if(start + custom->hadjust->page_increment > custom->hadjust->upper - range) + if(start + custom->hadjust->page_increment >= custom->hadjust->upper - range) custom->hadjust->value = start; /* page_size to the whole visible area will take care that the -- 2.34.1