summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-04-03 11:27:05 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-04-03 11:27:05 +0200
commit8644d10098a10e02c426a4ae80ce179586f35089 (patch)
treef045e868157e13a409f8559e5112029940f85a17 /vcl
parentb8c87dee815d9d20b65fe97e6f838c6937cdf6ab (diff)
Asserting rtl::O[U]StringBuffer::operator [] preconditions
...and fixing two call-sites. Change-Id: I8ed8cb189bd5034130b49b2f57156568e6b24716
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/field2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/field2.cxx b/vcl/source/control/field2.cxx
index b988cb83cc11..8b9972d09aeb 100644
--- a/vcl/source/control/field2.cxx
+++ b/vcl/source/control/field2.cxx
@@ -2265,7 +2265,7 @@ static sal_Bool ImplTimeGetValue( const OUString& rStr, Time& rTime,
return sal_False;
nSepPos = aStr.indexOf( rLocaleDataWrapper.getTimeSep() );
- if ( aStr[0] == '-' )
+ if ( !aStr.isEmpty() && aStr[0] == '-' )
bNegative = sal_True;
if ( nSepPos >= 0 )
{