[Thinlet-development] thinlet/src/java/thinlet Thinlet.java,1.15,1.16
Brought to you by:
bajzat
From: Andrzej B. <ab...@us...> - 2004-10-04 21:28:08
|
Update of /cvsroot/thinlet/thinlet/src/java/thinlet In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6572 Modified Files: Thinlet.java Log Message: Fix for slider value 50 bug. Submitted by Mike Hartshorn and Timothy Stack. Index: Thinlet.java =================================================================== RCS file: /cvsroot/thinlet/thinlet/src/java/thinlet/Thinlet.java,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- Thinlet.java 4 Oct 2004 20:56:15 -0000 1.15 +++ Thinlet.java 4 Oct 2004 21:27:53 -0000 1.16 @@ -3956,7 +3956,7 @@ } int minimum = getInteger(component, "minimum", 0); int maximum = getInteger(component, "maximum", 100); - int value = getInteger(component, "value", 50); + int value = getInteger(component, "value", 0); Rectangle bounds = getRectangle(component, "bounds"); boolean horizontal = ("vertical" != get(component, "orientation")); int newvalue = minimum + (horizontal ? (x - referencex) : (y - referencey)) * (maximum - minimum) |