diff lwlib/xlwscrollbar.c @ 398:74fd4e045ea6 r21-2-29

Import from CVS: tag r21-2-29
author cvs
date Mon, 13 Aug 2007 11:13:30 +0200
parents 6240c7796c7a
children 2f8bb876ab1d
line wrap: on
line diff
--- a/lwlib/xlwscrollbar.c	Mon Aug 13 11:12:06 2007 +0200
+++ b/lwlib/xlwscrollbar.c	Mon Aug 13 11:13:30 2007 +0200
@@ -979,7 +979,7 @@
   if (ss < SS_MIN)
     {
       /* add a percent amount for integer rounding */
-      float tmp = ((((float) (SS_MIN - ss) * (float) value)) / total) + 0.5;
+      float tmp = (((float) (SS_MIN - ss) * (float) value) / total) + 0.5;
 
       above -= (int) tmp;
       ss = SS_MIN;