From ca4d4cac45eb3d5f6999eebd8cb0b358afce235c Mon Sep 17 00:00:00 2001 From: Tibor Nagy Date: Wed, 19 Feb 2020 08:58:39 +0100 Subject: [PATCH] HexEditor: Clear tracked changes when setting a new buffer --- Applications/HexEditor/HexEditor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Applications/HexEditor/HexEditor.cpp b/Applications/HexEditor/HexEditor.cpp index 4ce6f6f95a..77c67462d5 100644 --- a/Applications/HexEditor/HexEditor.cpp +++ b/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();