mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-25 13:07:01 +00:00
Added an assertion
This commit is contained in:
parent
42d4b4be6a
commit
23d156908d
@ -2495,6 +2495,7 @@ void TextUnformatted(const char* text, const char* text_end)
|
|||||||
if (window->SkipItems)
|
if (window->SkipItems)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
IM_ASSERT(text != NULL);
|
||||||
const char* text_begin = text;
|
const char* text_begin = text;
|
||||||
if (text_end == NULL)
|
if (text_end == NULL)
|
||||||
text_end = text + strlen(text);
|
text_end = text + strlen(text);
|
||||||
|
Loading…
Reference in New Issue
Block a user