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:
Bartosz Taudul
2025-07-30 23:35:54 +02:00
committed by GitHub

View File

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