# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1317223745 0 # Node ID 9b021f787ad1112c6e954cf515cb917c0f2e236f # Parent d2f37fda40df9af3fbda04bd7ac7802d44498cae Fix issues with OS/2 percent bar at the upper end of range. diff -r d2f37fda40df -r 9b021f787ad1 os2/dw.c --- a/os2/dw.c Wed Sep 28 15:03:50 2011 +0000 +++ b/os2/dw.c Wed Sep 28 15:29:05 2011 +0000 @@ -6735,7 +6735,10 @@ else if(range) { /* Otherwise set the position as usual */ - int mypos = ((float)position/100)*range; + int mypos = (((float)position)/100)*range; + + if(mypos >= range) + mypos = range - 1; _dw_int_set(handle, mypos); WinSendMsg(handle, SLM_SETSLIDERINFO, MPFROM2SHORT(SMA_SLIDERARMPOSITION,SMA_RANGEVALUE), (MPARAM)mypos);