[Libreoffice-commits] core.git: svtools/source

Noel Grandin noel at peralex.com
Thu Feb 4 06:23:30 UTC 2016


 svtools/source/control/ctrlbox.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e2bada96d5d6242e3dc6a957e90b73feb9fc0765
Author: Noel Grandin <noel at peralex.com>
Date:   Wed Jan 27 11:04:45 2016 +0200

    loplugin:fpcomparison in svtools/
    
    Change-Id: I8dc3cc128dc97b429e714c4837dd6cb81fa358d0
    Reviewed-on: https://gerrit.libreoffice.org/21862
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx
index eb32450..6697d3f 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;
     }
 


More information about the Libreoffice-commits mailing list