mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Fix an edge case in zone drawing.
If the last zone on a track was not ended, and in the view's past (beyond the left edge of the view) it was still included in calculation of track height.
This commit is contained in:
parent
299d1d7a73
commit
4ca4c85976
@ -1864,6 +1864,7 @@ int View::DrawZoneLevel( const Vector<ZoneEvent*>& vec, bool hover, double pxns,
|
||||
|
||||
const auto zitend = std::lower_bound( it, vec.end(), m_zvEnd + resolution, [] ( const auto& l, const auto& r ) { return l->start < r; } );
|
||||
if( it == zitend ) return depth;
|
||||
if( (*it)->end < 0 && m_worker.GetZoneEnd( **it ) < m_zvStart ) return depth;
|
||||
|
||||
const auto w = ImGui::GetWindowContentRegionWidth() - 1;
|
||||
const auto ty = ImGui::GetFontSize();
|
||||
|
Loading…
Reference in New Issue
Block a user