Metrics: Added a "Settings" section with some details about persistent ini settings. InputText: Assert early on null buffer.

This commit is contained in:
omar
2020-05-07 18:00:11 +02:00
parent 510f301c9f
commit 9ee442d3f0
3 changed files with 41 additions and 1 deletions

View File

@ -3523,6 +3523,7 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_
if (window->SkipItems)
return false;
IM_ASSERT(buf != NULL && buf_size >= 0);
IM_ASSERT(!((flags & ImGuiInputTextFlags_CallbackHistory) && (flags & ImGuiInputTextFlags_Multiline))); // Can't use both together (they both use up/down keys)
IM_ASSERT(!((flags & ImGuiInputTextFlags_CallbackCompletion) && (flags & ImGuiInputTextFlags_AllowTabInput))); // Can't use both together (they both use tab key)