Sfoglia il codice sorgente

HexEditor: Clear tracked changes when setting a new buffer

Tibor Nagy 5 anni fa
parent
commit
ca4d4cac45
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      Applications/HexEditor/HexEditor.cpp

+ 1 - 0
Applications/HexEditor/HexEditor.cpp

@@ -67,6 +67,7 @@ void HexEditor::set_buffer(const ByteBuffer& buffer)
 {
     m_buffer = buffer;
     set_content_length(buffer.size());
+    m_tracked_changes.clear();
     m_position = 0;
     m_byte_position = 0;
     update();