Calling InitAlpha() when we already had loaded alpha from the resource data
results in an assert. Fix this by only initializing alpha if don't have it
yet.
Closes #14643.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72471
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
image.SetMaskColour(0xc0, 0xc0, 0xc0);
}
image.SetMaskColour(0xc0, 0xc0, 0xc0);
}
+ // We could have already loaded alpha from the resources, but if not,
+ // initialize it now using the mask.
+ if ( !image.HasAlpha() )
+ image.InitAlpha();