From e976c7f88bf8fc2b1a36dc51a1ad1994aa4a1f17 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist <cazfi74@gmail.com> 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 <cazfi74@gmail.com> --- 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("</b></td><td>") + res.toHtmlEscaped() + QString("<td></tr><tr><td><b>") + _("Culture:") + QString("</b></td><td>") + cult.toHtmlEscaped() + + // HACK: Reserve extra line of space in case some line wraps to two later + + QString("</td>\u200B<td>") + QString("</td></table>"); for (int i = 0; i < static_cast<int>(DS_LAST); i++) { -- 2.35.1