vcl/osx/saltimer.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit b39660047aa0b8be811d529ee22e8f60d2f9c94e Author: Stephan Bergmann <sberg...@redhat.com> Date: Fri Feb 26 21:06:07 2016 +0100 loplugin:fpcomparison Change-Id: I5ef9d7bcff3fcc2b01c0e5578487a293c6e315df diff --git a/vcl/osx/saltimer.cxx b/vcl/osx/saltimer.cxx index eb62693..5a242e8 100644 --- a/vcl/osx/saltimer.cxx +++ b/vcl/osx/saltimer.cxx @@ -19,6 +19,8 @@ #include <sal/config.h> +#include <rtl/math.hxx> + #include "osx/saltimer.h" #include "osx/salnstimer.h" #include "osx/saldata.hxx" @@ -37,7 +39,8 @@ void ImplSalStartTimer( sal_uLong nMS ) NSTimeInterval aTI = double(nMS)/1000.0; if( AquaSalTimer::pRunningTimer != nil ) { - if( [AquaSalTimer::pRunningTimer timeInterval] == aTI ) + if (rtl::math::approxEqual( + [AquaSalTimer::pRunningTimer timeInterval], aTI)) { // set new fire date [AquaSalTimer::pRunningTimer setFireDate: [NSDate dateWithTimeIntervalSinceNow: aTI]]; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits