diff options
-rw-r--r-- | cui/source/dialogs/about.cxx | 4 |
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; |