From 3163563a2723deb8fda7dc161b223bab539fcb8f Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 26 Oct 2017 02:06:30 +0200 Subject: [PATCH] Fix crash on unended lock highlight. --- server/TracyView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index faebb63f..1915c308 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2320,8 +2320,8 @@ int View::DrawLocks( uint64_t tid, bool hover, double pxns, const ImVec2& wpos, if( !highlight.blocked ) { highlight.id = v.first; - highlight.begin = (*vbegin)->time; - highlight.end = (*next)->time; + highlight.begin = t0; + highlight.end = t1; highlight.thread = thread; highlight.blocked = false; }