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; }