vcl/source/outdev/wallpaper.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit e7143e7acbcc4abf7abd39390601246bc016e2dd
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Wed Apr 9 15:37:30 2025 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Wed Apr 9 18:19:04 2025 +0200

    no need to Erase() alpha layer twice
    
    Change-Id: If2a05302ffe8489823ca989144a5e6a8be51f6e2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183936
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>
    Tested-by: Jenkins

diff --git a/vcl/source/outdev/wallpaper.cxx b/vcl/source/outdev/wallpaper.cxx
index 8ab8698323aa..b1eeb4dc2874 100644
--- a/vcl/source/outdev/wallpaper.cxx
+++ b/vcl/source/outdev/wallpaper.cxx
@@ -117,8 +117,8 @@ void OutputDevice::Erase()
         if ( eRasterOp != RasterOp::OverPaint )
             SetRasterOp( eRasterOp );
     }
-
-    if( mpAlphaVDev )
+    // If we went into the "if ( mbBackground )" section, then we have already 
erased the mpAlphaDev.
+    else if( mpAlphaVDev )
         mpAlphaVDev->Erase();
 }
 

Reply via email to