Fix wxImageList test failing under wxQt
This commit is contained in:
parent
0d47ca2463
commit
2f6052e337
1 changed files with 6 additions and 1 deletions
|
|
@ -601,7 +601,12 @@ void wxBitmap::QtBlendMaskWithAlpha()
|
|||
{
|
||||
AllocExclusive();
|
||||
M_PIXDATA.setMask(*M_MASK->GetHandle());
|
||||
wxDELETE(M_MASK);
|
||||
|
||||
// Notice that if the mask was created from a colour that does not exist in
|
||||
// the bitmap, setMask() will have no effect on the bitmap. So only delete
|
||||
// it if it has been applied successfully.
|
||||
if ( HasAlpha() )
|
||||
wxDELETE(M_MASK);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue