Don't try to shorten zone names starting with '['.

This commit is contained in:
Bartosz Taudul 2024-06-12 23:33:45 +02:00
parent 2edd23f5a0
commit 3589b46fab
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -19,7 +19,7 @@ constexpr const char* TypesList[] = {
const char* ShortenZoneName( ShortenName type, const char* name, ImVec2& tsz, float zsz ) const char* ShortenZoneName( ShortenName type, const char* name, ImVec2& tsz, float zsz )
{ {
assert( type != ShortenName::Never ); assert( type != ShortenName::Never );
if( name[0] == '<' ) return name; if( name[0] == '<' || name[0] == '[' ) return name;
if( type == ShortenName::Always ) zsz = 0; if( type == ShortenName::Always ) zsz = 0;
static char buf[64*1024]; static char buf[64*1024];