Kaydet (Commit) 737a0de6 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

tdf#91649 call ApplySettings at a more correct place

Change-Id: I84a620a845b9338cd830c8929346204e3d88003f
üst 8400e87a
......@@ -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);
......
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