diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-27 11:04:45 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-02-04 06:22:49 +0000 |
commit | e2bada96d5d6242e3dc6a957e90b73feb9fc0765 (patch) | |
tree | 7d63ef10356d76194d679b76ae2d98b0319e568c | |
parent | 198f20238330e60172f67e9c6a21aeefc50136c4 (diff) |
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>
-rw-r--r-- | svtools/source/control/ctrlbox.cxx | 2 |
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; } |