1
0
mirror of synced 2025-01-30 11:37:32 +01:00

fix: Modifying last byte in row copies first byte from current row to next row

Fixes #1329
This commit is contained in:
WerWolv 2023-10-22 13:46:10 +02:00
parent 72f2f0877d
commit beca8033cf

View File

@ -160,7 +160,7 @@ namespace hex::plugin::builtin::ui {
void HexEditor::drawCell(u64 address, u8 *data, size_t size, bool hovered, CellType cellType) { void HexEditor::drawCell(u64 address, u8 *data, size_t size, bool hovered, CellType cellType) {
static DataVisualizerAscii asciiVisualizer; static DataVisualizerAscii asciiVisualizer;
if (this->m_shouldUpdateEditingValue) { if (this->m_shouldUpdateEditingValue && address == this->m_editingAddress) {
this->m_shouldUpdateEditingValue = false; this->m_shouldUpdateEditingValue = false;
this->m_editingBytes.resize(size); this->m_editingBytes.resize(size);
std::memcpy(this->m_editingBytes.data(), data, size); std::memcpy(this->m_editingBytes.data(), data, size);