From b1b33b2ae422ce3c447241761028ff2fa66459a9 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 25 Jun 2022 23:01:38 +0200 Subject: [PATCH] ui: Added back missing selection byte count value --- plugins/builtin/source/content/views/view_hex_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/builtin/source/content/views/view_hex_editor.cpp b/plugins/builtin/source/content/views/view_hex_editor.cpp index cf250981f..b6215d110 100644 --- a/plugins/builtin/source/content/views/view_hex_editor.cpp +++ b/plugins/builtin/source/content/views/view_hex_editor.cpp @@ -967,7 +967,7 @@ namespace hex::plugin::builtin { auto selection = this->getSelection(); std::string value; if (this->isSelectionValid()) - value = hex::format("0x{0:08X} - 0x{1:08X} ({0} - {1})", selection.getStartAddress(), selection.getEndAddress()); + value = hex::format("0x{0:08X} - 0x{1:08X} ({0} - {1}) ({2} {3})", selection.getStartAddress(), selection.getEndAddress(), selection.getSize(), selection.getSize() == 1 ? "Byte" : "Bytes"); else value = std::string("hex.builtin.view.hex_editor.selection.none"_lang);