[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - sfx2/source
Jan Holesovsky
kendy at collabora.com
Fri Dec 13 09:19:51 PST 2013
sfx2/source/control/recentdocsview.cxx | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
New commits:
commit 7f367c016c32678182b4666f98b204de6a6e882f
Author: Jan Holesovsky <kendy at collabora.com>
Date: Fri Dec 13 18:18:27 2013 +0100
startcenter: A little more space between the picture & welcome text.
Change-Id: I093fecd1fb5c052c85cf84f131845258a5fd2284
diff --git a/sfx2/source/control/recentdocsview.cxx b/sfx2/source/control/recentdocsview.cxx
index 1b63ba4..6c92b45 100644
--- a/sfx2/source/control/recentdocsview.cxx
+++ b/sfx2/source/control/recentdocsview.cxx
@@ -261,15 +261,14 @@ void RecentDocsView::Paint( const Rectangle &aRect )
long nTextWidth2 = GetTextWidth(maWelcomeLine2);
const Size & rImgSize = maWelcomeImage.GetSizePixel();
-
const Size & rSize = GetSizePixel();
const int nX = (rSize.Width() - rImgSize.Width())/2;
const int nY = (rSize.Height() - 3 * nTextHeight - rImgSize.Height())/2;
Point aImgPoint(nX, nY);
- Point aStr1Point((rSize.Width() - nTextWidth1)/2, nY + rImgSize.Height() + nTextHeight/2);
- Point aStr2Point((rSize.Width() - nTextWidth2)/2, nY + rImgSize.Height() + nTextHeight + nTextHeight/2);
+ Point aStr1Point((rSize.Width() - nTextWidth1)/2, nY + rImgSize.Height() + 0.7 * nTextHeight);
+ Point aStr2Point((rSize.Width() - nTextWidth2)/2, nY + rImgSize.Height() + 1.7 * nTextHeight);
DrawImage(aImgPoint, rImgSize, maWelcomeImage, IMAGE_DRAW_SEMITRANSPARENT);
DrawText(aStr1Point, maWelcomeLine1);
More information about the Libreoffice-commits
mailing list