From 102bb9f8a8baee10fbbbd2e55d9bcbba6a0240e2 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 24 Apr 2023 22:01:06 +0200 Subject: [PATCH] Include before-start plot item, so that the plot doesn't begin abruptly. --- server/TracyTimelineItemPlot.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/server/TracyTimelineItemPlot.cpp b/server/TracyTimelineItemPlot.cpp index 8f419ded..939f3713 100644 --- a/server/TracyTimelineItemPlot.cpp +++ b/server/TracyTimelineItemPlot.cpp @@ -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 )