summaryrefslogtreecommitdiffstats
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-01-27 11:04:45 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-02-04 06:22:49 +0000
commite2bada96d5d6242e3dc6a957e90b73feb9fc0765 (patch)
tree7d63ef10356d76194d679b76ae2d98b0319e568c /svtools
parentfirebird: avoid using ignored -m option to make (diff)
downloadcore-e2bada96d5d6242e3dc6a957e90b73feb9fc0765.tar.gz
core-e2bada96d5d6242e3dc6a957e90b73feb9fc0765.zip
loplugin:fpcomparison in svtools/
Change-Id: I8dc3cc128dc97b429e714c4837dd6cb81fa358d0 Reviewed-on: https://gerrit.libreoffice.org/21862 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/ctrlbox.cxx2
1 files changed, 1 insertions, 1 deletions
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;
}