drawinglayer/source/primitive2d/GlowSoftEgdeShadowTools.cxx |    4 ++--
 include/vcl/bitmap.hxx                                      |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 2a4841003adcc0a0c4ad2c782c506a6248193ca6
Author:     Noel Grandin <[email protected]>
AuthorDate: Thu Aug 14 09:51:29 2025 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Thu Aug 14 13:03:50 2025 +0200

    BitmapEx->Bitmap in ProcessAndBlurAlphaMask
    
    no need to use BitmapEx here
    
    Change-Id: I3cc62d2509137eea6ed2bdba271e9e84eb3247a3
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189575
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <[email protected]>

diff --git a/drawinglayer/source/primitive2d/GlowSoftEgdeShadowTools.cxx 
b/drawinglayer/source/primitive2d/GlowSoftEgdeShadowTools.cxx
index 1a8d22b10f31..0f07c2210670 100644
--- a/drawinglayer/source/primitive2d/GlowSoftEgdeShadowTools.cxx
+++ b/drawinglayer/source/primitive2d/GlowSoftEgdeShadowTools.cxx
@@ -38,7 +38,7 @@ AlphaMask ProcessAndBlurAlphaMask(const AlphaMask& rMask, 
double fErodeDilateRad
 
     // Only completely white pixels on the initial mask must be considered for 
transparency. Any
     // other color must be treated as black. This creates 1-bit B&W bitmap.
-    BitmapEx mask(bConvertTo1Bit ? tmpMask.GetBitmap().CreateMask(COL_WHITE) : 
tmpMask.GetBitmap());
+    Bitmap mask = bConvertTo1Bit ? tmpMask.GetBitmap().CreateMask(COL_WHITE) : 
tmpMask.GetBitmap();
 
     // Scaling down increases performance without noticeable quality loss. 
Additionally,
     // current blur implementation can only handle blur radius between 2 and 
254.
@@ -77,7 +77,7 @@ AlphaMask ProcessAndBlurAlphaMask(const AlphaMask& rMask, 
double fErodeDilateRad
     // And switch to the alpha domain.
     mask.Invert();
 
-    return AlphaMask(mask.GetBitmap());
+    return AlphaMask(mask);
 }
 
 drawinglayer::geometry::ViewInformation2D
diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx
index 87949802b326..33d9d02be8d5 100644
--- a/include/vcl/bitmap.hxx
+++ b/include/vcl/bitmap.hxx
@@ -507,7 +507,7 @@ public:
 
         @return true, if the operation was completed successfully.
      */
-    SAL_DLLPRIVATE bool Replace( const Color& rSearchColor, const Color& 
rReplaceColor, sal_uInt8 nTol = 0 );
+    bool Replace( const Color& rSearchColor, const Color& rReplaceColor, 
sal_uInt8 nTol = 0 );
 
     /** Replace all pixel having one the search colors with the corresponding 
replace color
 

Reply via email to