summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-05-28 18:47:29 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-05-28 18:56:02 +0900
commit737a0de6fd06070d5eb11c6dd43bb51f9cc272da (patch)
treec5b78d1d655713847e755f2d424463f2a2801b32
parent8400e87a41b5613f2fcf27525b97b40f653a3178 (diff)
tdf#91649 call ApplySettings at a more correct place
Change-Id: I84a620a845b9338cd830c8929346204e3d88003f
-rw-r--r--vcl/source/window/paint.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx
index a68d6bc14e21..fd50a200e4f3 100644
--- a/vcl/source/window/paint.cxx
+++ b/vcl/source/window/paint.cxx
@@ -217,6 +217,7 @@ void PaintHelper::DoPaint(const vcl::Region* pRegion)
{
// double-buffering
SetupBuffer();
+ m_pWindow->ApplySettings(*m_pBuffer.get());
// temporarily decrease the mnOutOffX/Y of the buffer for the
// subwidgets (because the m_pBuffer is our base here)
@@ -237,6 +238,7 @@ void PaintHelper::DoPaint(const vcl::Region* pRegion)
else
{
// direct painting
+ m_pWindow->ApplySettings(*m_pWindow);
m_pWindow->PushPaintHelper(this, *m_pWindow);
m_pWindow->Paint(*m_pWindow, m_aPaintRect);
}
@@ -505,11 +507,6 @@ namespace vcl {
void Window::ImplCallPaint(const VclPtr<VirtualDevice>& rBuffer, const vcl::Region* pRegion, sal_uInt16 nPaintFlags)
{
- if (rBuffer)
- ApplySettings(*rBuffer.get());
- else
- ApplySettings(*this);
-
// call PrePaint. PrePaint may add to the invalidate region as well as
// other parameters used below.
PrePaint(*this);