Fix other lines

This commit is contained in:
Dedmen Miller (Dedmenmiller) 2019-01-24 15:02:36 +00:00
parent 72966a24a3
commit e83e63caa4

View File

@ -5067,7 +5067,7 @@ void View::DrawFindZone()
while( zit != m_findZone.selSort.end() && *zit == 0 ) zit++; while( zit != m_findZone.selSort.end() && *zit == 0 ) zit++;
for( int64_t i=0; i<numBins; i++ ) for( int64_t i=0; i<numBins; i++ )
{ {
const auto nextBinVal = ( i+1 ) * zmax / numBins; const auto nextBinVal = tmin + ( i+1 ) * zmax / numBins;
auto nit = std::lower_bound( zit, m_findZone.selSort.end(), nextBinVal ); auto nit = std::lower_bound( zit, m_findZone.selSort.end(), nextBinVal );
if( cumulateTime ) if( cumulateTime )
{ {
@ -6028,7 +6028,7 @@ void View::DrawCompare()
const auto zmax = tmax - tmin; const auto zmax = tmax - tmin;
for( int64_t i=0; i<numBins; i++ ) for( int64_t i=0; i<numBins; i++ )
{ {
const auto nextBinVal = ( i+1 ) * zmax / numBins; const auto nextBinVal = tmin + ( i+1 ) * zmax / numBins;
auto nit0 = std::lower_bound( zit0, sorted[0].end(), nextBinVal ); auto nit0 = std::lower_bound( zit0, sorted[0].end(), nextBinVal );
auto nit1 = std::lower_bound( zit1, sorted[1].end(), nextBinVal ); auto nit1 = std::lower_bound( zit1, sorted[1].end(), nextBinVal );
bins[i].v0 += adj0 * std::distance( zit0, nit0 ); bins[i].v0 += adj0 * std::distance( zit0, nit0 );
@ -6895,7 +6895,7 @@ void View::DrawInfo()
while( fit != frames.end() && *fit == 0 ) fit++; while( fit != frames.end() && *fit == 0 ) fit++;
for( int64_t i=0; i<numBins; i++ ) for( int64_t i=0; i<numBins; i++ )
{ {
const auto nextBinVal = ( i+1 ) * zmax / numBins; const auto nextBinVal = tmin + ( i+1 ) * zmax / numBins;
auto nit = std::lower_bound( fit, frames.end(), nextBinVal ); auto nit = std::lower_bound( fit, frames.end(), nextBinVal );
bins[i] = std::distance( fit, nit ); bins[i] = std::distance( fit, nit );
fit = nit; fit = nit;