From 90e386acaadfba30d214d84209d9ff8532078203 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Wed, 6 Dec 2023 21:36:51 +0000 Subject: [PATCH] Codechange: Vertical spacing for caption is captiontext, not framerect. (#11550) This does not really matter as the caption height is sized correctly later anyway, so this just avoids confusion. --- src/widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widget.cpp b/src/widget.cpp index 22089495cd..ba7bca4e62 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -2738,7 +2738,7 @@ NWidgetLeaf::NWidgetLeaf(WidgetType tp, Colours colour, int index, uint32_t data this->SetFill(1, 0); this->SetResize(1, 0); this->SetMinimalSize(0, WD_CAPTION_HEIGHT); - this->SetMinimalTextLines(1, WidgetDimensions::unscaled.framerect.Vertical(), FS_NORMAL); + this->SetMinimalTextLines(1, WidgetDimensions::unscaled.captiontext.Vertical(), FS_NORMAL); this->SetDataTip(data, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS); break;