[Libreoffice-commits] .: cui/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sat Nov 24 16:23:33 PST 2012
cui/source/dialogs/about.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit d4181e5b54577c4bda025d447aeb08d9b0e441af
Author: Jean-Baptiste FAURE <jbf.faure at orange.fr>
Date: Sat Nov 24 21:17:15 2012 +0100
Allow the version number to be on 2 lines in the About dialog
Change-Id: I641c668b0ced2564039ed1e3f2469cf4d220de5f
diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx
index 1c28e53..0e13ca9 100644
--- a/cui/source/dialogs/about.cxx
+++ b/cui/source/dialogs/about.cxx
@@ -235,9 +235,11 @@ void AboutDialog::LayoutControls()
sal_Int32 aLogoVersionSpacing = aLogoSize.Height() * 0.15;
Point aVersionPos( aDialogBorder,
aLogoPos.Y() + aLogoSize.Height() + aLogoVersionSpacing );
- Size aVersionSize = aVersionText.CalcMinimumSize();
+ Size aVersionSize = aVersionText.GetSizePixel();
aVersionSize.Width() = aIdealTextWidth;
aVersionText.SetPosSizePixel( aVersionPos, aVersionSize );
+ aVersionSize = aVersionText.CalcMinimumSize();
+ aVersionText.SetSizePixel( aVersionSize );
// Position description text
sal_Int32 aVersionDescriptionSpacing = aLogoSize.Height() * 0.45;
More information about the Libreoffice-commits
mailing list