include/basegfx/numeric/ftools.hxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit 2c798538041310294ac7900b110620a8eece9150 Author: Caolán McNamara <caol...@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
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits