mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
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.
This commit is contained in:
parent
d27cb4a094
commit
112406472a
@ -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 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user