Added an assertion

This commit is contained in:
ocornut 2014-08-19 12:27:34 +01:00
parent 42d4b4be6a
commit 23d156908d

View File

@ -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);