svl/source/numbers/zformat.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 12ec403c547cca4d7e5f73ae3ef58ff8faf3721e
Author: Caolán McNamara <caol...@redhat.com>
Date:   Mon Jul 7 12:05:46 2014 +0100

    fix crash on loading fdo70673-1.ods
    
    rStr is NaN
    
    Change-Id: I8206ab322a08d558cf5f05750efd700875b2134c

diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx
index 262b686..ef94a23 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--;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to