mirror of
https://github.com/ocornut/imgui.git
synced 2024-10-16 16:25:15 -05:00
Added an assertion
This commit is contained in:
parent
42d4b4be6a
commit
23d156908d
1 changed files with 1 additions and 0 deletions
|
@ -2495,6 +2495,7 @@ void TextUnformatted(const char* text, const char* text_end)
|
|||
if (window->SkipItems)
|
||||
return;
|
||||
|
||||
IM_ASSERT(text != NULL);
|
||||
const char* text_begin = text;
|
||||
if (text_end == NULL)
|
||||
text_end = text + strlen(text);
|
||||
|
|
Loading…
Reference in a new issue