Bug report?

peter at transvirtual.com peter at transvirtual.com
Thu Oct 8 11:03:51 PDT 1998


Outch.. You're right - the fix wasn't commited into the CVS tree. Sorry for
that!

-- Peter

$ diff -wbBd ~/kaffe-snap/libraries/javalib/java/awt/widgets/Scrollbar.java Scrollbar.java
489c489
<               int x0 = val * ( width - dx ) / delta;
---
>               int x0 = (val - min) * ( width - dx ) / delta;
498c498
<               int y0 = val * ( height - dy ) / delta;
---
>               int y0 = (val - min) * ( height - dy ) / delta;
504d503
< 
512c511
<               newVal = slRect.x * ( max - min) / (width - slRect.width );
---
>               newVal = slRect.x * ( max - min) / (width - slRect.width ) + min;
514c513
<               newVal = slRect.y * ( max - min) / (height - slRect.height);
---
>               newVal = slRect.y * ( max - min) / (height - slRect.height) + min;


More information about the kaffe mailing list