sfx2/source/control/recentdocsviewitem.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit fb73681c447a2f1ac61b9813ad0db266533ef57b
Author:     Noel Grandin <[email protected]>
AuthorDate: Mon Mar 2 12:06:55 2026 +0200
Commit:     Xisco Fauli <[email protected]>
CommitDate: Mon Mar 2 22:05:55 2026 +0100

    tdf#170406 Thumbnails for some documents rendered with artifacts
    
    regression from
      commit 07fd24a4bddddc2d0b0484d39b68a81fdca3c610
      Author: Noel Grandin <[email protected]>
      Date:   Sat Aug 2 09:15:36 2025 +0200
      BitmapEx->Bitmap in ThumbnailView
    
    Change-Id: I24ffd28e789f904c999b2759df41f2e15f328e0f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200790
    Reviewed-by: Noel Grandin <[email protected]>
    Tested-by: Jenkins
    (cherry picked from commit 16cc2fbe405248f58d2166da0bfa4106fd65c519)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200836
    Reviewed-by: Xisco Fauli <[email protected]>

diff --git a/sfx2/source/control/recentdocsviewitem.cxx 
b/sfx2/source/control/recentdocsviewitem.cxx
index cad00c464128..ec913958622d 100644
--- a/sfx2/source/control/recentdocsviewitem.cxx
+++ b/sfx2/source/control/recentdocsviewitem.cxx
@@ -203,6 +203,7 @@ RecentDocsViewItem::RecentDocsViewItem(sfx2::RecentDocsView 
&rView, const OUStri
 
         // create empty, and copy the default thumbnail in
         aThumbnail = Bitmap(aThumbnailSize, vcl::PixelFormat::N32_BPP);
+        aThumbnail.Erase(COL_TRANSPARENT);
 
         aThumbnail.CopyPixel(
                 ::tools::Rectangle(Point((aThumbnailSize.Width() - 
aExtSize.Width()) / 2, (aThumbnailSize.Height() - aExtSize.Height()) / 2), 
aExtSize),

Reply via email to