diff options
author | Xisco FaulĂ <xiscofauli@libreoffice.org> | 2020-01-17 14:44:21 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-17 20:50:26 +0100 |
commit | d720e120b6534ff2fdf6cb11f0b46eca454d4e34 (patch) | |
tree | e93f8562458dd3cbbc84331f48c8156cd49c40c6 /sfx2 | |
parent | 598ea01b91a1b4e96c24e70089a63dcd35b29f1b (diff) |
tdf#129788: Revert "no need to use AlphaMask in RecentDocsViewItem"
This reverts commit 31bd8c4a4a4752dcff12ee35636193f79a6d6137.
Similar to 5c54778aad677d6bb6e6687f0f43dffad1aefa1e
Change-Id: Ibb4daa702df1f683888b92b8b8041f28e25e6b04
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86998
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/recentdocsviewitem.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/control/recentdocsviewitem.cxx b/sfx2/source/control/recentdocsviewitem.cxx index 908a679a5629..85d84ddc699d 100644 --- a/sfx2/source/control/recentdocsviewitem.cxx +++ b/sfx2/source/control/recentdocsviewitem.cxx @@ -91,7 +91,8 @@ RecentDocsViewItem::RecentDocsViewItem(sfx2::RecentDocsView &rView, const OUStri } // create empty, and copy the default thumbnail in - aThumbnail = BitmapEx(aThumbnailSize, 24); + sal_uInt8 nAlpha = 255; + aThumbnail = BitmapEx(Bitmap(aThumbnailSize, 24), AlphaMask(aThumbnailSize, &nAlpha)); aThumbnail.CopyPixel( ::tools::Rectangle(Point((aThumbnailSize.Width() - aExtSize.Width()) / 2, (aThumbnailSize.Height() - aExtSize.Height()) / 2), aExtSize), |