From e2bada96d5d6242e3dc6a957e90b73feb9fc0765 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 27 Jan 2016 11:04:45 +0200 Subject: loplugin:fpcomparison in svtools/ Change-Id: I8dc3cc128dc97b429e714c4837dd6cb81fa358d0 Reviewed-on: https://gerrit.libreoffice.org/21862 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svtools/source/control/ctrlbox.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx index eb324504f1b3..6697d3fb3db7 100644 --- a/svtools/source/control/ctrlbox.cxx +++ b/svtools/source/control/ctrlbox.cxx @@ -372,7 +372,7 @@ static double lcl_getGuessedWidth( long nTested, double nRate, bool bChanging ) nWidth = double( nTested ) / nRate; else { - if ( double( nTested ) == nRate ) + if ( rtl::math::approxEqual(double( nTested ), nRate) ) nWidth = nRate; } -- cgit