[Libreoffice-commits] core.git: sfx2/source

Xisco Faulí (via logerrit) logerrit at kemper.freedesktop.org
Fri Jan 17 18:38:13 UTC 2020


 sfx2/source/control/recentdocsviewitem.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit be638ffb1ed82530162d18784e31c3506575ad7b
Author:     Xisco Faulí <xiscofauli at libreoffice.org>
AuthorDate: Fri Jan 17 14:44:21 2020 +0100
Commit:     Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Fri Jan 17 19:37:12 2020 +0100

    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/+/86981
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
    Tested-by: Jenkins
    Reviewed-by: Xisco Faulí <xiscofauli at libreoffice.org>

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),


More information about the Libreoffice-commits mailing list