From bdee154c9619aa11e51026e8feb0426265a75f32 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sun, 17 Nov 2019 22:17:27 +0100 Subject: [PATCH] Fix build with wxUSE_CAIRO==1 under wxMSW/wxOSX 'bmpSource' is declared later but we can check original bitmap 'bmp' for 'alpha flag' instead because 'bmpSource' is just a non-const copy of 'bmp'. --- src/generic/graphicc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/graphicc.cpp b/src/generic/graphicc.cpp index 4bbca0ae54..a1c41da412 100644 --- a/src/generic/graphicc.cpp +++ b/src/generic/graphicc.cpp @@ -1493,7 +1493,7 @@ wxCairoBitmapData::wxCairoBitmapData( wxGraphicsRenderer* renderer, const wxBitm #if defined(__WXMSW__) || defined(__WXOSX__) // Under MSW and OSX we can have 32 bpp xRGB bitmaps (without alpha). - const bool hasAlpha = bmpSource.HasAlpha(); + const bool hasAlpha = bmp.HasAlpha(); #endif cairo_format_t bufferFormat =