Perform proper division.

This commit is contained in:
Bartosz Taudul 2019-06-17 01:09:25 +02:00
parent b2bbd95430
commit add5c0fb87

View File

@ -8844,7 +8844,7 @@ void View::DrawInfo()
}
else
{
const auto pxns = numBins / ( tmax - tmin );
const auto pxns = numBins / double( tmax - tmin );
const auto nspx = 1.0 / pxns;
const auto scale = std::max<float>( 0.0f, round( log10( nspx ) + 2 ) );
const auto step = pow( 10, scale );