Don't crash on annotation with no name.

This commit is contained in:
Bartosz Taudul
2026-06-26 19:59:55 +02:00
parent 57c143c9b7
commit 30572e4810

View File

@@ -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() ? "<unnamed>" : v->text.c_str() ) )
{
range.min = v->range.min;
range.max = v->range.max;