[Libreoffice-commits] .: svl/source

Julien Nabet serval2412 at kemper.freedesktop.org
Sun Mar 18 10:31:24 PDT 2012


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

New commits:
commit c8ef98c5ad22ba585a28d81360e15fe2dcefc3ad
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Mar 18 18:30:07 2012 +0100

    Add parenthesis for avoid false report by cppcheck

diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx
index 0aed979..aa7a243 100644
--- a/svl/source/numbers/zformat.cxx
+++ b/svl/source/numbers/zformat.cxx
@@ -3840,7 +3840,7 @@ bool SvNumberformat::ImpGetNumberOutput(double fNumber,
             nPrecExp = 0;
         if (rInfo.nCntPost)    // NachkommaStellen
         {
-            if (rInfo.nCntPost + nPrecExp > 15 && nPrecExp < 15)
+            if ((rInfo.nCntPost + nPrecExp) > 15 && nPrecExp < 15)
             {
                 sStr = ::rtl::math::doubleToUString( fNumber,
                         rtl_math_StringFormat_F, 15-nPrecExp, '.');


More information about the Libreoffice-commits mailing list