summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-05-21 13:03:49 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-05-21 15:12:07 +0200
commit064c3756fc691a5a36f26a8fba1c1be5ce7eb449 (patch)
tree2bfc4bdf4f6fbbb129370fc896ffe8de987f654c
parentcae01a2e6b0186f0d44cb114e08e3ca461558989 (diff)
we want the max width here, not the sum of widths
Change-Id: Ie17c062a3e031b85a5784176895c08c9a1638bea Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115918 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--cui/source/dialogs/hangulhanjadlg.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/dialogs/hangulhanjadlg.cxx b/cui/source/dialogs/hangulhanjadlg.cxx
index 713001004091..163a84048541 100644
--- a/cui/source/dialogs/hangulhanjadlg.cxx
+++ b/cui/source/dialogs/hangulhanjadlg.cxx
@@ -261,7 +261,7 @@ namespace svx
Size minimumSize;
minimumSize.setHeight( aPrimarySize.Height() + aSecondarySize.Height() + 5 );
- minimumSize.setWidth( aPrimarySize.Width() + aSecondarySize.Width() + 5 );
+ minimumSize.setWidth(std::max(aPrimarySize.Width(), aSecondarySize.Width()) + 5 );
return minimumSize;
}