1
0
mirror of synced 2024-11-28 09:30:51 +01:00

fix: Writing to hex cells in big endian mode writing the value as little endian

Fixes #1219
This commit is contained in:
WerWolv 2023-08-02 12:51:33 +02:00
parent bf8924ae0c
commit 954c0d5bda

View File

@ -204,6 +204,9 @@ namespace hex::plugin::builtin::ui {
shouldExitEditingMode = this->m_currDataVisualizer->drawEditing(*this->m_editingAddress, buffer.data(), buffer.size(), this->m_upperCaseHex, this->m_enteredEditingMode);
if (this->m_dataVisualizerEndianness != std::endian::native)
std::reverse(buffer.begin(), buffer.end());
this->m_editingBytes = buffer;
} else if (cellType == this->m_editingCellType && cellType == CellType::ASCII) {
shouldExitEditingMode = asciiVisualizer.drawEditing(*this->m_editingAddress, this->m_editingBytes.data(), this->m_editingBytes.size(), this->m_upperCaseHex, this->m_enteredEditingMode);