# HG changeset patch # User Peter Nelson # Date 2023-12-06 21:36:51 # Node ID 0a9b3274938309de15289ca212c2abbc2e23aa88 # Parent 3c962d3bbe2553ee227f8d899e028457343418de 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. diff --git a/src/widget.cpp b/src/widget.cpp --- a/src/widget.cpp +++ b/src/widget.cpp @@ -2738,7 +2738,7 @@ NWidgetLeaf::NWidgetLeaf(WidgetType tp, 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;