From a8aba06a0741de65452e22958721b8aec11d5a51 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Mon, 30 Oct 2023 18:31:53 +0000 Subject: [PATCH] Fix: Insufficient space for labels on smallmap legend. --- src/smallmap_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp index 83ac2b5e08..10c93405fc 100644 --- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -1186,7 +1186,7 @@ void SmallMapWindow::RebuildColourIndexIfNecessary() this->legend_width = (FONT_HEIGHT_SMALL - ScaleGUITrad(1)) * 8 / 5; /* The width of a column is the minimum width of all texts + the size of the blob + some spacing */ - this->column_width = min_width + this->legend_width + WidgetDimensions::scaled.framerect.Horizontal(); + this->column_width = min_width + WidgetDimensions::scaled.hsep_normal + this->legend_width + WidgetDimensions::scaled.framerect.Horizontal(); } /* virtual */ void SmallMapWindow::OnPaint()