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

New commits:
commit c8ef98c5ad22ba585a28d81360e15fe2dcefc3ad
Author: Julien Nabet <serval2...@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, '.');
_______________________________________________
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to