Add DrawFinished() to early exit paths.

This commit is contained in:
Bartosz Taudul 2023-03-21 02:11:50 +01:00
parent e62a383833
commit 060bab357d
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

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