From 0aef1b6d4dd356cbb5d6dfc3965a3265c661afd7 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 7 Nov 2017 22:14:54 +0100 Subject: [PATCH] Proper tooltip for one condensed lock block. --- server/TracyView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 80d05a86..98b54b71 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2520,7 +2520,7 @@ int View::DrawLocks( uint64_t tid, bool hover, double pxns, const ImVec2& wpos, bool itemHovered = hover && ImGui::IsMouseHoveringRect( wpos + ImVec2( std::max( px0, -10.0 ), offset ), wpos + ImVec2( std::min( pxend, double( w + 10 ) ), offset + ty ) ); if( itemHovered ) { - if( condensed != 0 ) + if( condensed > 1 ) { ImGui::BeginTooltip(); ImGui::Text( "Multiple lock events (%" PRIu64 ")", condensed );