diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-04-03 11:27:05 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-04-03 11:27:05 +0200 |
commit | 8644d10098a10e02c426a4ae80ce179586f35089 (patch) | |
tree | f045e868157e13a409f8559e5112029940f85a17 /vcl | |
parent | b8c87dee815d9d20b65fe97e6f838c6937cdf6ab (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.cxx | 2 |
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 ) { |