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

New commits:
commit e2bada96d5d6242e3dc6a957e90b73feb9fc0765
Author: Noel Grandin <n...@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 <c...@libreoffice.org>
    Reviewed-by: Noel Grandin <noelgran...@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;
     }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to