mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-13 04:15:26 +00:00
Merge pull request #1117 from siliceum/bugfix/displaysamplesevenwithoutzones
If we have samples in view and they are displayed, timeline should be displayed even without zones
This commit is contained in:
@@ -262,7 +262,7 @@ void TimelineItemThread::HeaderExtraContents( const TimelineContext& ctx, int of
|
||||
bool TimelineItemThread::DrawContents( const TimelineContext& ctx, int& offset )
|
||||
{
|
||||
m_view.DrawThread( ctx, *m_thread, m_draw, m_ctxDraw, m_samplesDraw, m_lockDraw, offset, m_depth, m_hasCtxSwitch, m_hasSamples );
|
||||
if( m_depth == 0 && !m_hasMessages )
|
||||
if( m_depth == 0 && !m_hasMessages && ( !m_view.GetViewData().drawSamples || !m_hasSamples ) )
|
||||
{
|
||||
auto& crash = m_worker.GetCrashEvent();
|
||||
return crash.thread == m_thread->id;
|
||||
|
||||
Reference in New Issue
Block a user