diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-09-29 12:29:32 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-09-29 14:41:21 +0200 |
commit | 2db427f9e098439ef68ce309bd8b440160ff37a0 (patch) | |
tree | 6ee42816d703b71a7cf50e4603979fe3861cf947 /svtools | |
parent | 88d57cf241209ffec9eaed3e523942ab51af6db6 (diff) |
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@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/brwbox/brwbox2.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
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(); |