summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-05-04 16:28:09 +0200
committerEike Rathke <erack@redhat.com>2017-05-04 17:01:34 +0200
commit83f1381039898329a3e67330c1e59c039311363f (patch)
tree397b9a040da1bf893de106c8728dff2be9767012 /svl
parente98fab99b509b40312a2d5867327e06f9e55bfe2 (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.cxx4
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;