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; } }