[Libreoffice-commits] core.git: vcl/source

Markus Mohrhard markus.mohrhard at googlemail.com
Sat Apr 20 17:36:24 PDT 2013


 vcl/source/control/field.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a049c87ba59e3dde2ce1178e088530469e3d381b
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Sun Apr 21 02:10:13 2013 +0200

    fix access to invalid string position
    
    Change-Id: If811f256dc2a0cbdc25fe2a56e949736191aa002

diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx
index 1ee47e1..f1a683d 100644
--- a/vcl/source/control/field.cxx
+++ b/vcl/source/control/field.cxx
@@ -154,7 +154,7 @@ static sal_Bool ImplNumericGetValue( const OUString& rStr, sal_Int64& rValue,
     }
     else
     {
-        if ( aStr1[0] == '-')
+        if ( !aStr1.isEmpty() && aStr1[0] == '-')
             bNegative = sal_True;
     }
 


More information about the Libreoffice-commits mailing list