From 72b1ff6477f8adca95ddcdef704797c21769ba8c Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 25 Apr 2023 00:35:53 +0200 Subject: [PATCH] Early exit on empty plots. --- server/TracyTimelineItemPlot.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/server/TracyTimelineItemPlot.cpp b/server/TracyTimelineItemPlot.cpp index 7e6a4bee..42f763be 100644 --- a/server/TracyTimelineItemPlot.cpp +++ b/server/TracyTimelineItemPlot.cpp @@ -125,6 +125,7 @@ void TimelineItemPlot::Preprocess( const TimelineContext& ctx, TaskDispatch& td, if( !visible ) return; if( yPos > ctx.yMax ) return; + if( m_plot->data.empty() ) return; const auto PlotHeight = int( round( PlotHeightPx * GetScale() ) ); if( yPos + PlotHeight < ctx.yMin ) return;