From 0292c529ea69f284074c7f6aa47d1c0207d1a5b9 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Sat, 23 May 2026 03:45:41 +0200 Subject: [PATCH] list_view: Fall back to empty string when item label is NULL Fixes #195 --- nuklear_console_list_view.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nuklear_console_list_view.h b/nuklear_console_list_view.h index 13e9f99..2795786 100644 --- a/nuklear_console_list_view.h +++ b/nuklear_console_list_view.h @@ -332,8 +332,7 @@ NK_API struct nk_rect nk_console_list_view_render(nk_console* widget) { for (int i = 0; i < data->view.count; ++i) { const char* label = data->get_label_callback(widget, (nk_uint)(data->view.begin + i)); if (label == NULL) { - // TODO: When the list view item doesn't have a label, figure out a way to continue without misaligning selected. - break; + label = ""; } // Mouse Selection