From 5deb1c51dded36cb4ede17b75dcc88a6b174176d Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 13 Oct 2017 15:31:38 +0200 Subject: [PATCH] Can't modify both variables. --- server/TracyView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index a7d851c3..7487230c 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2119,7 +2119,7 @@ int View::DrawPlots( int offset, double pxns, const ImVec2& wpos, bool hover ) while( tmp != end ) { if( tmp->val < min ) min = tmp->val; - if( tmp->val > max ) max = tmp->val; + else if( tmp->val > max ) max = tmp->val; ++tmp; } }