[Libreoffice-commits] core.git: vcl/source
Arnaud Versini (via logerrit)
logerrit at kemper.freedesktop.org
Fri Dec 20 09:57:04 UTC 2019
vcl/source/control/edit.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 10d345faa087fa49692f38bb2ece22560f423ba7
Author: Arnaud Versini <arnaud.versini at libreoffice.org>
AuthorDate: Sun Dec 8 11:42:35 2019 +0100
Commit: Miklos Vajna <vmiklos at collabora.com>
CommitDate: Fri Dec 20 10:56:00 2019 +0100
tdf#83248: Use the right text color when printing fields
Change-Id: I81167207a35d524660b9a1d6740cfce551489c4a
Reviewed-on: https://gerrit.libreoffice.org/84707
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos at collabora.com>
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index 41d5ea4a42e6..ddf942f76c15 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -1727,7 +1727,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();
@@ -1754,7 +1753,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
{
More information about the Libreoffice-commits
mailing list