diff options
author | Aleksei Nikiforov <darktemplar@basealt.ru> | 2018-11-07 17:48:06 +0300 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2018-11-16 10:43:27 +0100 |
commit | 5edc23dbc53773536265fd6a54319d9cd1cd9e99 (patch) | |
tree | 01f7dd2a23e74ad8e0421f70f60bdc0980f90d07 /vcl/qt5/Qt5VirtualDevice.cxx | |
parent | 84a0496de8300e4e7febb0f30862d8c5f9a1472e (diff) |
tdf#120777 KDE5: Update initialization of QImages
Make sure that created empty QImages are filled with transparent pixels.
Copying data from previous QImage on widget resize removes blanking
on window resize when qt5 vcl plugin is used.
Change-Id: If072a4b8b334bc87dbe4aaea9aa8774bb5e202ee
Reviewed-on: https://gerrit.libreoffice.org/63029
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Tested-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'vcl/qt5/Qt5VirtualDevice.cxx')
-rw-r--r-- | vcl/qt5/Qt5VirtualDevice.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/qt5/Qt5VirtualDevice.cxx b/vcl/qt5/Qt5VirtualDevice.cxx index a26ec627bea5..f1c7d9606c8f 100644 --- a/vcl/qt5/Qt5VirtualDevice.cxx +++ b/vcl/qt5/Qt5VirtualDevice.cxx @@ -76,6 +76,7 @@ bool Qt5VirtualDevice::SetSizeUsingBuffer(long nNewDX, long nNewDY, sal_uInt8* p m_pImage.reset(new QImage(nNewDX, nNewDY, Qt5_DefaultFormat32)); } + m_pImage->fill(Qt::transparent); m_pImage->setDevicePixelRatio(m_fScale); // update device in existing graphics |