[Libreoffice-commits] core.git: wizards/com

rbuj robert.buj at gmail.com
Wed Aug 20 23:52:33 PDT 2014


 wizards/com/sun/star/wizards/document/DatabaseControl.java |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit e189fa400ec4fcafae5e3b04f054cec851f81dd8
Author: rbuj <robert.buj at gmail.com>
Date:   Wed Aug 20 16:37:43 2014 +0200

    wizards: EffectiveMax & EffectiveMin of TINYINT
    
    http://docs.oracle.com/javase/1.5.0/docs/api/constant-values.html#java.lang.Byte.MIN_VALUE
    
    Change-Id: I702f1354eaddc37e6321c3cdc0126a78945d0754
    Reviewed-on: https://gerrit.libreoffice.org/11044
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
    Tested-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/wizards/com/sun/star/wizards/document/DatabaseControl.java b/wizards/com/sun/star/wizards/document/DatabaseControl.java
index 7e98a87..6995fdc 100644
--- a/wizards/com/sun/star/wizards/document/DatabaseControl.java
+++ b/wizards/com/sun/star/wizards/document/DatabaseControl.java
@@ -199,8 +199,8 @@ public class DatabaseControl extends Control
                         xPropertySet.setPropertyValue("EffectiveMin", new Double(Short.MIN_VALUE));
                         break;
                     case DataType.TINYINT:
-                        xPropertySet.setPropertyValue("EffectiveMax", new Double(127));
-                        xPropertySet.setPropertyValue("EffectiveMin", new Double(-128));
+                        xPropertySet.setPropertyValue("EffectiveMax", new Double(Byte.MAX_VALUE));
+                        xPropertySet.setPropertyValue("EffectiveMin", new Double(Byte.MIN_VALUE));
                         break;
                     case DataType.FLOAT:
                     case DataType.REAL:


More information about the Libreoffice-commits mailing list