From: yangxx Date: Tue, 28 Oct 2003 20:39:22 +0000 (+0000) Subject: git-svn-id: http://ltt.polymtl.ca/svn@325 04897980-b3bd-0310-b5e0-8ef037075253 X-Git-Tag: v0.12.20~3164 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=8daac0c3e9f3da80974b4e28ba03570b9cd67bf8;p=lttv.git git-svn-id: ltt.polymtl.ca/svn@325 04897980-b3bd-0310-b5e0-8ef037075253 --- 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