sc/source/ui/optdlg/calcoptionsdlg.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 6635508ad59515311245245472f7a38eabab28cd
Author: Stephan Bergmann <[email protected]>
Date:   Wed Nov 19 10:27:03 2014 +0100

    -Werror,-Wabsolute-value
    
    ("using integer absolute value function 'abs' when argument is of floating 
point
    type")
    
    Change-Id: I8c091049b44dd44ec44124055c160a024ec658a5

diff --git a/sc/source/ui/optdlg/calcoptionsdlg.cxx 
b/sc/source/ui/optdlg/calcoptionsdlg.cxx
index 750d859..3a4764e 100644
--- a/sc/source/ui/optdlg/calcoptionsdlg.cxx
+++ b/sc/source/ui/optdlg/calcoptionsdlg.cxx
@@ -7,6 +7,10 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
+#include <sal/config.h>
+
+#include <cmath>
+
 #include "calcconfig.hxx"
 #include "calcoptionsdlg.hxx"
 #include "docsh.hxx"
@@ -1049,7 +1053,7 @@ IMPL_LINK( ScCalcOptionsDialog, TestClickHdl, 
PushButton*, )
         // Handle TAN undefinedness. Use a relative epsilon for larger TAN 
values
         if (i <= 16 && i % 4 == 2)
             pDoc->SetValue(ScAddress(23,i,2), 0);
-        else if (abs(tan(d)) < 10)
+        else if (std::abs(tan(d)) < 10)
             pDoc->SetString(ScAddress(23,i,2),
                             OUString("=IF(ABS(D") + is + "-N" + is + ")<" + 
sEpsilon + ",0,1)");
         else
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to