From 30572e48103e1f5f23c74fd3e1a21f480bdf4ffd Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 26 Jun 2026 19:59:55 +0200 Subject: [PATCH] Don't crash on annotation with no name. --- profiler/src/profiler/TracyView_Ranges.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiler/src/profiler/TracyView_Ranges.cpp b/profiler/src/profiler/TracyView_Ranges.cpp index 4616c66a..59f840c7 100644 --- a/profiler/src/profiler/TracyView_Ranges.cpp +++ b/profiler/src/profiler/TracyView_Ranges.cpp @@ -101,7 +101,7 @@ void View::DrawRangeEntry( Range& range, const char* label, uint32_t color, int { SmallColorBox( v->color ); ImGui::SameLine(); - if( ImGui::Selectable( v->text.c_str() ) ) + if( ImGui::Selectable( v->text.empty() ? "" : v->text.c_str() ) ) { range.min = v->range.min; range.max = v->range.max;