We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version: v1.85 Branch: master
When passing the ImGuiInputTextFlags_ReadOnly to InputText, the callback_data.Buf is null. Meanwhile, BufTextLen is (correctly) the text length.
callback_data.Buf
BufTextLen
Something like
callback_data.EventKey = event_key; - callback_data.Buf = state->TextA.Data; + callback_data.Buf = state->TextAIsValid ? state->TextA.Data : state->InitialTextA.Data; callback_data.BufTextLen = state->CurLenA;
seems to be semantically correct, but then
IM_ASSERT(callback_data.Buf == state->TextA.Data);
will fail
The text was updated successfully, but these errors were encountered:
InputText: fixed ReadOnly flag preventing callbacks from receiving th…
5ac25e7
…e text buffer. (#4762)
Thank you! Pushed a fix 5ac25e7
Sorry, something went wrong.
acdab13
…e text buffer. (ocornut#4762)
InputText: fix buffer modifications in callbacks while using resize c…
eea8361
…allback (#4784) Regressed by 5ac25e7 (#4762)
No branches or pull requests
Version: v1.85
Branch: master
When passing the ImGuiInputTextFlags_ReadOnly to InputText, the
callback_data.Buf
is null. Meanwhile,BufTextLen
is (correctly) the text length.Something like
seems to be semantically correct, but then
IM_ASSERT(callback_data.Buf == state->TextA.Data);
will fail
The text was updated successfully, but these errors were encountered: