summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-04-21 02:10:13 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-04-21 02:35:01 +0200
commita049c87ba59e3dde2ce1178e088530469e3d381b (patch)
treef57aaed9442ea327f3462f5f9355e159ef088549 /vcl
parent80885bf2c371d697c2719cc53975771ff36524de (diff)
fix access to invalid string position
Change-Id: If811f256dc2a0cbdc25fe2a56e949736191aa002
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/field.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx
index 1ee47e1dbf24..f1a683d952b0 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;
}