summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorJean-Baptiste FAURE <jbf.faure@orange.fr>2012-11-24 21:17:15 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-11-25 01:21:53 +0100
commitd4181e5b54577c4bda025d447aeb08d9b0e441af (patch)
tree8f604ded11742e54c5fe73f19fbbd6fa39693992 /cui
parent7de4f83848f6277251e48606ce2c670ea9866926 (diff)
Allow the version number to be on 2 lines in the About dialog
Change-Id: I641c668b0ced2564039ed1e3f2469cf4d220de5f
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/about.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx
index 1c28e53bd482..0e13ca9e6228 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;