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;