From b4046e8ded446c674c80539fbf1fda8a2b1b34c5 Mon Sep 17 00:00:00 2001 From: Nav Date: Sat, 1 Apr 2023 16:16:58 +0100 Subject: [PATCH] Corrected focused region annotation margin caclulation --- .../HexViewerWidget/FocusedRegionGroupItem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/FocusedRegionGroupItem.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/FocusedRegionGroupItem.cpp index c0dc58ef..d462e10d 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/FocusedRegionGroupItem.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/FocusedRegionGroupItem.cpp @@ -165,7 +165,7 @@ namespace Bloom::Widgets const int maximumWidth ) const { if (hexViewerState->settings.displayAnnotations) { - constexpr auto averageSymbolWidth = 6; + constexpr auto averageSymbolWidth = 8; const auto nameLabelWidth = static_cast(this->focusedMemoryRegion.name.size() * averageSymbolWidth); const auto valueLabelWidth = static_cast( this->valueLabel.has_value() ? this->valueLabel->size() * averageSymbolWidth : 0