From 1cf168c95e6668cb339a2977daae1e2f79da38e1 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 29 Jul 2018 20:23:31 +0200 Subject: [PATCH] Fix impossible zoom animation. --- server/TracyView.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 2d772f38..40e4612b 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -6075,6 +6075,11 @@ void View::ZoomToZone( const GpuEvent& ev ) void View::ZoomToRange( int64_t start, int64_t end ) { + if( start == end ) + { + end = start + 1; + } + m_pause = true; m_highlightZoom.active = false; m_zoomAnim.active = true;