Kaydet (Commit) ece70177 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl Kaydeden (comit) Jan Holesovsky

tdf#91649 call ApplySettings at a more correct place

Change-Id: I84a620a845b9338cd830c8929346204e3d88003f
Signed-off-by: 's avatarJan Holesovsky <kendy@collabora.com>
üst 1597c8ca
...@@ -217,6 +217,7 @@ void PaintHelper::DoPaint(const vcl::Region* pRegion) ...@@ -217,6 +217,7 @@ void PaintHelper::DoPaint(const vcl::Region* pRegion)
{ {
// double-buffering // double-buffering
SetupBuffer(); SetupBuffer();
m_pWindow->ApplySettings(*m_pBuffer.get());
// temporarily decrease the mnOutOffX/Y of the buffer for the // temporarily decrease the mnOutOffX/Y of the buffer for the
// subwidgets (because the m_pBuffer is our base here) // subwidgets (because the m_pBuffer is our base here)
...@@ -237,6 +238,7 @@ void PaintHelper::DoPaint(const vcl::Region* pRegion) ...@@ -237,6 +238,7 @@ void PaintHelper::DoPaint(const vcl::Region* pRegion)
else else
{ {
// direct painting // direct painting
m_pWindow->ApplySettings(*m_pWindow);
m_pWindow->PushPaintHelper(this, *m_pWindow); m_pWindow->PushPaintHelper(this, *m_pWindow);
m_pWindow->Paint(*m_pWindow, m_aPaintRect); m_pWindow->Paint(*m_pWindow, m_aPaintRect);
} }
...@@ -505,11 +507,6 @@ namespace vcl { ...@@ -505,11 +507,6 @@ namespace vcl {
void Window::ImplCallPaint(const VclPtr<VirtualDevice>& rBuffer, const vcl::Region* pRegion, sal_uInt16 nPaintFlags) 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 // call PrePaint. PrePaint may add to the invalidate region as well as
// other parameters used below. // other parameters used below.
PrePaint(*this); PrePaint(*this);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment