diff options
author | Arnaud Versini <arnaud.versini@libreoffice.org> | 2019-12-08 11:42:35 +0100 |
---|---|---|
committer | Jean-Sebastien BEVILACQUA <realitix@gmail.com> | 2020-03-24 15:20:40 +0100 |
commit | 8524ad7363d1d3a6bf3dba38bf2ecfb807ad7cc0 (patch) | |
tree | 3924a4e481469f34ea60eb7adcfe732fff823dfc | |
parent | b2f3a9f667790fa66b74d0b0586b287df0bf0e5d (diff) |
Fix acim#910: tdf#83248: Use the right text color when printing fields
Reviewed-on: https://gerrit.libreoffice.org/84707
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit 10d345faa087fa49692f38bb2ece22560f423ba7)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85848
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Change-Id: I81167207a35d524660b9a1d6740cfce551489c4a
-rw-r--r-- | vcl/source/control/edit.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index 6e4e49018bff..a47a74447cbd 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -1755,7 +1755,6 @@ void Edit::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, DrawF Point aPos = pDev->LogicToPixel( rPos ); Size aSize = pDev->LogicToPixel( rSize ); vcl::Font aFont = GetDrawPixelFont( pDev ); - OutDevType eOutDevType = pDev->GetOutDevType(); pDev->Push(); pDev->SetMapMode(); @@ -1782,7 +1781,7 @@ void Edit::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, DrawF } // Content - if ( ( nFlags & DrawFlags::Mono ) || ( eOutDevType == OUTDEV_PRINTER ) ) + if ( nFlags & DrawFlags::Mono ) pDev->SetTextColor( COL_BLACK ); else { |