From 097008833e732e36018f730251874b87d7ee0f2b Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 14 Oct 2020 17:42:51 -0700 Subject: [PATCH] Use the original image to check for a mask, not the one that may have had the mask converted to alpha --- src/osx/core/bitmap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osx/core/bitmap.cpp b/src/osx/core/bitmap.cpp index 1249cbb008..c0f54d71a9 100644 --- a/src/osx/core/bitmap.cpp +++ b/src/osx/core/bitmap.cpp @@ -1187,8 +1187,8 @@ wxBitmap::wxBitmap(const wxImage& image, int depth, double scale) GetBitmapData()->EndRawAccess() ; } - if ( img.HasMask() ) - SetMask(new wxMask(*this, wxColour(img.GetMaskRed(), img.GetMaskGreen(), img.GetMaskBlue()))); + if ( image.HasMask() ) + SetMask(new wxMask(*this, wxColour(image.GetMaskRed(), image.GetMaskGreen(), image.GetMaskBlue()))); } }