fix: Writing to hex cells in big endian mode writing the value as little endian
Fixes #1219
This commit is contained in:
parent
bf8924ae0c
commit
954c0d5bda
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user