From 95af214abe0e64d856e02950dcf2138be3fcc23e Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 16 Dec 2019 18:40:38 +0100 Subject: [PATCH] Prevent 0 ns timeline view range. --- server/TracyView.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 36a2c710..7bc31d65 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -14221,6 +14221,10 @@ void View::SetViewToLastFrames() { m_vd.zvEnd = m_worker.GetFrameBegin( *m_frames, total - 1 ); } + if( m_vd.zvEnd == m_vd.zvStart ) + { + m_vd.zvEnd = m_worker.GetLastTime(); + } } int64_t View::GetZoneChildTime( const ZoneEvent& zone )