git-svn-id: http://ltt.polymtl.ca/svn@325 04897980-b3bd-0310-b5e0-8ef037075253
authoryangxx <yangxx@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 28 Oct 2003 20:39:22 +0000 (20:39 +0000)
committeryangxx <yangxx@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 28 Oct 2003 20:39:22 +0000 (20:39 +0000)
ltt/branches/poly/lttv/modules/gui/mainWin/src/gtkcustom.c

index f9b3582678f02e408bb77cbd79fec3c61e590e30..1d4c68aafc3408f68b1b5f3ab274397ecfc39583 100644 (file)
@@ -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
This page took 0.02371 seconds and 4 git commands to generate.