Kaydet (Commit) 97cba407 authored tarafından Aleksei Nikiforov's avatar Aleksei Nikiforov Kaydeden (comit) Samuel Mehrbrodt

tdf#120777 KDE5: Remove initial painting of widgets

Widget will be painted later, after correct widget size is set.

If window is not resizeable and painted before setting correct size,
it saves clipping size in function vcl::Window::ImplIntersectWindowClipRegion
and never updates it when window is resized to correct size.

This initial painting call causes painting issues in
"File" -> "Wizard" -> "Letter" dialog:
"Cancel" button is painted only partially, as well as line above that button.

Other unresizeable windows with width over 640 pixels or height over 480 pixels
may be affected too.

Change-Id: Ieccb58368670ebbbe6d17826fafc717101309ac4
Reviewed-on: https://gerrit.libreoffice.org/63017Reviewed-by: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
üst bb9ddf25
......@@ -187,7 +187,6 @@ void Qt5Frame::InitSvpSalGraphics(SvpSalGraphics* pSvpSalGraphics)
m_pSvpGraphics->setSurface(m_pSurface.get(), basegfx::B2IVector(width, height));
cairo_surface_set_user_data(m_pSurface.get(), SvpSalGraphics::getDamageKey(), &m_aDamageHandler,
nullptr);
TriggerPaintEvent();
}
SalGraphics* Qt5Frame::AcquireGraphics()
......@@ -213,7 +212,6 @@ SalGraphics* Qt5Frame::AcquireGraphics()
m_pQt5Graphics.reset(new Qt5Graphics(this));
m_pQImage.reset(new QImage(m_pQWidget->size(), Qt5_DefaultFormat32));
m_pQt5Graphics->ChangeQImage(m_pQImage.get());
TriggerPaintEvent();
}
return m_pQt5Graphics.get();
}
......
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