From 112406472a128c8b320cda16db27fd7ea6f2ea69 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 15 Aug 2022 17:03:45 +0200 Subject: [PATCH] Do not normalize non-ghost zone names. These do not have unwanted decorations, but may include useful user annotations (e.g. "Open file (/etc/passwd)"), which we would not want to remove. --- server/TracyView_ZoneTimeline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyView_ZoneTimeline.cpp b/server/TracyView_ZoneTimeline.cpp index 2430e260..1ee2c409 100644 --- a/server/TracyView_ZoneTimeline.cpp +++ b/server/TracyView_ZoneTimeline.cpp @@ -517,7 +517,7 @@ int View::DrawZoneLevel( const V& vec, bool hover, double pxns, int64_t nspx, co } auto tsz = ImGui::CalcTextSize( zoneName ); - if( m_shortenName != ShortenName::Never && ( m_shortenName != ShortenName::NoSpace || tsz.x > zsz ) ) + if( m_shortenName == ShortenName::Always || ( ( m_shortenName == ShortenName::NoSpace || m_shortenName == ShortenName::NoSpaceAndNormalize ) && tsz.x > zsz ) ) { zoneName = ShortenZoneName( m_shortenName, zoneName, tsz, zsz ); }