Don't initialize alpha twice when loading wxImage from resources.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 13 Sep 2012 17:13:05 +0000 (17:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 13 Sep 2012 17:13:05 +0000 (17:13 +0000)
commit9a0f0f462f4bce813af5fd7d26d61f2109d0025e
tree197e16222c2f74b4588d32b72b88e5b0b6a354d9
parent0825f0ba2bce6105c3ea550f9001921e578e36d2
Don't initialize alpha twice when loading wxImage from resources.

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
src/common/image.cpp