mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Some cell visualizer types not updating their values correctly
This commit is contained in:
@@ -1183,10 +1183,10 @@ namespace hex {
|
||||
};
|
||||
|
||||
UserData userData = {
|
||||
.data = &data,
|
||||
.maxChars = this->getMaxCharsPerCell(),
|
||||
.data = &data,
|
||||
.maxChars = this->getMaxCharsPerCell(),
|
||||
|
||||
.editingDone = false
|
||||
.editingDone = false
|
||||
};
|
||||
|
||||
ImGui::PushID(reinterpret_cast<void*>(address));
|
||||
@@ -1198,6 +1198,8 @@ namespace hex {
|
||||
if (data->BufTextLen >= userData.maxChars)
|
||||
userData.editingDone = true;
|
||||
|
||||
data->Buf[userData.maxChars] = 0x00;
|
||||
|
||||
return 0;
|
||||
}, &userData);
|
||||
ImGui::PopID();
|
||||
|
||||
Reference in New Issue
Block a user