[Libreoffice-commits] core.git: cui/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri May 21 13:12:46 UTC 2021


 cui/source/dialogs/hangulhanjadlg.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 064c3756fc691a5a36f26a8fba1c1be5ce7eb449
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri May 21 13:03:49 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri May 21 15:12:07 2021 +0200

    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 at redhat.com>

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;
     }
 


More information about the Libreoffice-commits mailing list