Include before-start plot item, so that the plot doesn't begin abruptly.

This commit is contained in:
Bartosz Taudul 2023-04-24 22:01:06 +02:00
parent 8eb2cc83b3
commit 102bb9f8a8
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -171,11 +171,8 @@ void TimelineItemPlot::Preprocess( const TimelineContext& ctx, TaskDispatch& td,
m_plot->rMax = max;
m_plot->num = num;
if( it == vec.begin() )
{
m_draw.emplace_back( 0 );
m_draw.emplace_back( it - vec.begin() );
}
m_draw.emplace_back( 0 );
m_draw.emplace_back( it - vec.begin() );
++it;
while( it < end )