1
0
mirror of synced 2025-01-29 19:17:28 +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) {
static DataVisualizerAscii asciiVisualizer;
if (this->m_shouldUpdateEditingValue) {
if (this->m_shouldUpdateEditingValue && address == this->m_editingAddress) {
this->m_shouldUpdateEditingValue = false;
this->m_editingBytes.resize(size);
std::memcpy(this->m_editingBytes.data(), data, size);