Hi,
The commit
http://cgit.freedesktop.org/libreoffice/core/commit/?id=b7e6c8459b15a4fdb9ebb269b27cdeea82c8c5c2
allows to have an unabbreviated commit ID as build-ID in the About dialog
Unfortunatly the version number is then too long to fit the dialog box
on a single line.
On my build, the attached patch allows to have the version text on two
lines in the About dialog.
I do not know if I did the right thing. I reproduced what is done for
the description text but, perhaps, there was a good reason to do
differently for version text and description text.
Best regards.
JBF
--
Seuls des formats ouverts peuvent assurer la pérennité de vos documents.
From 056f4693ea3833ea958dad8e628a8198498cbc21 Mon Sep 17 00:00:00 2001
From: Jean-Baptiste FAURE <jbf.faure@orange.fr>
Date: Sat, 24 Nov 2012 21:17:15 +0100
Subject: [PATCH] Allow the version number to be on 2 lines in the About
dialog
Change-Id: I641c668b0ced2564039ed1e3f2469cf4d220de5f
---
cui/source/dialogs/about.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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;
--
1.7.9.5
Context
- [PATCH] tentative patch to have the version number on two lines · Jean-Baptiste Faure
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.