diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-07 12:05:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-07 12:05:54 +0100 |
commit | 12ec403c547cca4d7e5f73ae3ef58ff8faf3721e (patch) | |
tree | 1b394b72c5602d3896bac3ff4c9137f6c963c4d6 /svl | |
parent | aacfd5038d05a02f8b1eade3a5896d3d7e959f3d (diff) |
fix crash on loading fdo70673-1.ods
rStr is NaN
Change-Id: I8206ab322a08d558cf5f05750efd700875b2134c
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/numbers/zformat.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx index 262b686e81df..ef94a236ec93 100644 --- a/svl/source/numbers/zformat.cxx +++ b/svl/source/numbers/zformat.cxx @@ -4364,7 +4364,7 @@ bool SvNumberformat::ImpGetNumberOutput(double fNumber, const OUString& rStr = rInfo.sStrArray[j]; const sal_Unicode* p1 = rStr.getStr(); const sal_Unicode* p = p1 + rStr.getLength(); - while ( p1 < p-- ) + while (k && p1 < p--) { const sal_Unicode c = *p; k--; |