From 060bab357d9ce00b6a02901f34906148cd9fdd75 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 21 Mar 2023 02:11:50 +0100 Subject: [PATCH] Add DrawFinished() to early exit paths. --- server/TracyTimelineItem.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/TracyTimelineItem.cpp b/server/TracyTimelineItem.cpp index e52625ab..2c415c44 100644 --- a/server/TracyTimelineItem.cpp +++ b/server/TracyTimelineItem.cpp @@ -27,10 +27,15 @@ void TimelineItem::Draw( bool firstFrame, const TimelineContext& ctx, int yOffse if( !IsVisible() ) { + DrawFinished(); if( m_height != 0 ) AdjustThreadHeight( firstFrame, yBegin, yEnd ); return; } - if( IsEmpty() ) return; + if( IsEmpty() ) + { + DrawFinished(); + return; + } const auto w = ctx.w; const auto ty = ctx.ty;