[Libreoffice-commits] core.git: include/basegfx

Caolán McNamara caolanm at redhat.com
Thu May 21 08:03:31 PDT 2015


 include/basegfx/numeric/ftools.hxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 2c798538041310294ac7900b110620a8eece9150
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu May 21 16:02:42 2015 +0100

    Revert "fTools::getSmallValue() is not used anymore"
    
    to fix the build
    
    This reverts commit ce7d80c69d936e844ec4ed930264bfc8cadacde1.

diff --git a/include/basegfx/numeric/ftools.hxx b/include/basegfx/numeric/ftools.hxx
index 32c7654..b4ae0a4 100644
--- a/include/basegfx/numeric/ftools.hxx
+++ b/include/basegfx/numeric/ftools.hxx
@@ -151,10 +151,13 @@ namespace basegfx
     class BASEGFX_DLLPUBLIC fTools
     {
     public:
+        /// Get threshold value for equalZero and friends
+        static double getSmallValue() { return 0.000000001f; }
+
         /// Compare against small value
         static bool equalZero(const double& rfVal)
         {
-            return (fabs(rfVal) <= 0.000000001f);
+            return (fabs(rfVal) <= getSmallValue());
         }
 
         /// Compare against given small value


More information about the Libreoffice-commits mailing list