summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToma┼ż Vajngerl <tomaz.vajngerl@collabora.com>2015-10-28 20:27:48 +0100
committerAndras Timar <andras.timar@collabora.com>2015-11-03 18:10:20 +0100
commit89b545fd24c25b5fe98139c314bec4e626db1a30 (patch)
treeb0d416b30c828edd870e8460dbf6a997ba513bc0
parent455d0765714fb96026bf1d9b49511f727954422a (diff)
tdf#94138 also apply settings when printing (Draw call)
(cherry picked from commit 93a007b1b02c13025b08bcefe19dd54e24e2b80f) Change-Id: I72056f3e167923f00c37648a24190b533eb9b471 Reviewed-on: https://gerrit.libreoffice.org/19655 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> (cherry picked from commit d36d2d68f3cb5f270081243269ca83109a2a3732)
-rw-r--r--vcl/source/control/edit.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index 325084582fb1..7e04604a5ca5 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -1804,6 +1804,8 @@ void Edit::Resize()
void Edit::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags )
{
+ ApplySettings(*pDev);
+
Point aPos = pDev->LogicToPixel( rPos );
Size aSize = pDev->LogicToPixel( rSize );
vcl::Font aFont = GetDrawPixelFont( pDev );