[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - sfx2/source

Jan Holesovsky kendy at collabora.com
Fri Jul 3 12:54:17 PDT 2015


 sfx2/source/control/recentdocsview.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit bb1ae405750be24ddbcccb9bb0baf0b12efe680e
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Tue Jun 30 16:46:02 2015 +0200

    tdf#90452: The correct color for the message when there's no recent file yet.
    
    Change-Id: I5a990643903946ea339136fbc514ca8cb90fa34e
    Reviewed-on: https://gerrit.libreoffice.org/16624
    Reviewed-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sfx2/source/control/recentdocsview.cxx b/sfx2/source/control/recentdocsview.cxx
index 1ede436..471645e 100644
--- a/sfx2/source/control/recentdocsview.cxx
+++ b/sfx2/source/control/recentdocsview.cxx
@@ -267,8 +267,9 @@ void RecentDocsView::Paint(vcl::RenderContext& rRenderContext, const Rectangle &
     if (mItemList.size() == 0)
     {
         // No recent files to be shown yet. Show a welcome screen.
-        rRenderContext.Push(PushFlags::FONT);
+        rRenderContext.Push(PushFlags::FONT | PushFlags::TEXTCOLOR);
         SetMessageFont(rRenderContext);
+        SetTextColor(maTextColor);
 
         long nTextHeight = rRenderContext.GetTextHeight();
 


More information about the Libreoffice-commits mailing list