From e976c7f88bf8fc2b1a36dc51a1ad1994aa4a1f17 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Fri, 22 Jul 2022 10:48:27 +0300 Subject: [PATCH 55/55] Qt: Reserve extra line of space for intelligence information So that if some line later wraps, taking two lines, all of the text still fits. Reported by chippo See osdn #45191 Signed-off-by: Marko Lindqvist --- client/gui-qt/plrdlg.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/gui-qt/plrdlg.cpp b/client/gui-qt/plrdlg.cpp index 0ba2f64331..0657abfefa 100644 --- a/client/gui-qt/plrdlg.cpp +++ b/client/gui-qt/plrdlg.cpp @@ -550,6 +550,9 @@ void plr_widget::nation_selected(const QItemSelection &sl, + QString("") + res.toHtmlEscaped() + QString("") + _("Culture:") + QString("") + cult.toHtmlEscaped() + + // HACK: Reserve extra line of space in case some line wraps to two later + + QString("\u200B") + QString(""); for (int i = 0; i < static_cast(DS_LAST); i++) { -- 2.35.1