[Libreoffice-commits] core.git: svtools/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Wed Sep 29 12:41:55 UTC 2021


 svtools/source/brwbox/brwbox2.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 2db427f9e098439ef68ce309bd8b440160ff37a0
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Sep 29 12:29:32 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Sep 29 14:41:21 2021 +0200

    Resolves: tdf#73139 text defaulted to transparent in pdf export
    
    set an initial explicit default text color to resolve this
    
    Change-Id: I875ae68a23d1768216ddf77764011f34ca70969c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122813
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/svtools/source/brwbox/brwbox2.cxx b/svtools/source/brwbox/brwbox2.cxx
index 504af9f6fdd9..7c0f81c9e662 100644
--- a/svtools/source/brwbox/brwbox2.cxx
+++ b/svtools/source/brwbox/brwbox2.cxx
@@ -647,6 +647,10 @@ void BrowseBox::Draw( OutputDevice* pDev, const Point& rPos, SystemTextColorFlag
     pDev->Push();
     pDev->SetMapMode();
     pDev->SetFont( aFont );
+    if (nFlags & SystemTextColorFlags::Mono)
+        pDev->SetTextColor(COL_BLACK);
+    else
+        pDev->SetTextColor(pDataWin->GetTextColor());
 
     // draw a frame
     const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();


More information about the Libreoffice-commits mailing list