diff options
author | Eike Rathke <erack@redhat.com> | 2017-05-04 16:28:09 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-05-04 17:01:34 +0200 |
commit | 83f1381039898329a3e67330c1e59c039311363f (patch) | |
tree | 397b9a040da1bf893de106c8728dff2be9767012 /svl | |
parent | e98fab99b509b40312a2d5867327e06f9e55bfe2 (diff) |
Bail out early for just a sign as start string
Change-Id: I9852aa70f6cf61c00d882cd7ff1171275c5b9c24
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/numbers/zforfind.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/svl/source/numbers/zforfind.cxx b/svl/source/numbers/zforfind.cxx index 59eb48e595b7..c45050e31093 100644 --- a/svl/source/numbers/zforfind.cxx +++ b/svl/source/numbers/zforfind.cxx @@ -2045,6 +2045,10 @@ bool ImpSvNumberInputScan::ScanStartString( const OUString& rString, } } + // Bail out early for just a sign. + if (nSign && nPos == rString.getLength()) + return true; + if ( GetDecSep(rString, nPos) ) // decimal separator in start string { nDecPos = 1; |