Closed DeltaGW2 closed 3 months ago
Thanks for the PR. Merged as 3bd1c1b !
Hello,
after this change I tried setting the ReadOnly
flag to true but when I click on a byte imgui crashes with:
imgui_widgets.cpp:4882: bool ImGui::InputTextEx(const char *, const char *, char *, int, const ImVec2 &, ImGuiInputTextFlags, ImGuiInputTextCallback, void *): Assertion `!is_readonly' failed.
This happens whether or not I set WriteFn
.
Reproducer: just add the ReadOnly flag at this line, launch the executable with ./rntviewer lmext1.root
and click on a byte.
Thank you @silverweed . I have investigated this and established that the assert is in fault, Pushed https://github.com/ocornut/imgui/commit/8a946b69e98d819e9123963122d3b8b10df52e78 to main repository.
I have also pushed a workaround in the imgui_memory_editor itself for good measure: 49a5ee0
Thank you!
If ReadOnly is enabled you can no longer select any data and therefore not preview it.
This PR fixes that issue by
ReadOnly
check from theDataEditingAddr
bounds check.ImGuiInputTextFlags_ReadOnly
on theInputText
widget.ReadOnly
is not set when calling theWriteFn
ReadOnly
check for the click and hover branch.