From 7ec7e562d1600b3124575e1326cbe33faa89c939 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 14 May 2023 22:52:47 +0200 Subject: [PATCH] fix: Wrong editing values in hex editor in some circumstances --- plugins/builtin/source/ui/hex_editor.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/plugins/builtin/source/ui/hex_editor.cpp b/plugins/builtin/source/ui/hex_editor.cpp index 6555744a1..06687ec24 100644 --- a/plugins/builtin/source/ui/hex_editor.cpp +++ b/plugins/builtin/source/ui/hex_editor.cpp @@ -218,15 +218,6 @@ namespace hex::plugin::builtin::ui { void HexEditor::drawCell(u64 address, u8 *data, size_t size, bool hovered, CellType cellType) { static DataVisualizerAscii asciiVisualizer; - if (this->m_shouldUpdateEditingValue && this->m_editingAddress.has_value()) { - if (!((this->m_editingAddress.value() % this->m_bytesPerRow) == 0 && address != this->m_editingAddress.value())) { - this->m_shouldUpdateEditingValue = false; - - this->m_editingBytes.resize(size); - std::memcpy(this->m_editingBytes.data(), data, size); - } - } - if (this->m_editingAddress != address || this->m_editingCellType != cellType) { if (cellType == CellType::Hex) this->m_currDataVisualizer->draw(address, data, size, this->m_upperCaseHex);