empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doeb...@apache.org
Subject svn commit: r1387151 - /empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/TextInputControl.java
Date Tue, 18 Sep 2012 13:42:13 GMT
Author: doebele
Date: Tue Sep 18 13:42:12 2012
New Revision: 1387151

URL: http://svn.apache.org/viewvc?rev=1387151&view=rev
Log: (empty)

Modified:
    empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/TextInputControl.java

Modified: empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/TextInputControl.java
URL: http://svn.apache.org/viewvc/empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/TextInputControl.java?rev=1387151&r1=1387150&r2=1387151&view=diff
==============================================================================
--- empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/TextInputControl.java
(original)
+++ empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/controls/TextInputControl.java
Tue Sep 18 13:42:12 2012
@@ -373,7 +373,7 @@ public class TextInputControl extends In
             // thousand separator ?
             Object groupSep = col.getAttribute(InputControl.NUMBER_GROUPSEP_ATTRIBUTE);
             if (groupSep!=null && ObjectUtils.getBoolean(groupSep))
-                len += (prec/3);
+                len += ((prec-scale-1)/3);
             // sign?
             Object minVal = col.getAttribute(DBColumn.DBCOLATTR_MINVALUE);
             if (minVal==null || ObjectUtils.getInteger(minVal)<0)



Mime
View raw message