Revision: 1702 http://svn.sourceforge.net/spring-rich-c/?rev=1702&view=rev Author: ge0ffrey Date: 2007-01-27 07:23:15 -0800 (Sat, 27 Jan 2007)
Log Message: ----------- scale wasn't actually done Modified Paths: -------------- trunk/spring-richclient/sandbox/src/main/java/org/springframework/richclient/swing/BigDecimalTextField.java Modified: trunk/spring-richclient/sandbox/src/main/java/org/springframework/richclient/swing/BigDecimalTextField.java =================================================================== --- trunk/spring-richclient/sandbox/src/main/java/org/springframework/richclient/swing/BigDecimalTextField.java 2007-01-27 15:18:38 UTC (rev 1701) +++ trunk/spring-richclient/sandbox/src/main/java/org/springframework/richclient/swing/BigDecimalTextField.java 2007-01-27 15:23:15 UTC (rev 1702) @@ -203,7 +203,7 @@ { BigDecimal bd = new BigDecimal(Double.toString(n.doubleValue())); if (scale != null) { - bd.setScale(scale.intValue(), BigDecimal.ROUND_HALF_UP); + bd = bd.setScale(scale.intValue(), BigDecimal.ROUND_HALF_UP); } return bd; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ spring-rich-c-cvs mailing list spring-rich-c-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spring-rich-c-cvs