fixed crash in drop down list when switching between editors

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@165 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-12-24 14:08:08 +00:00
parent 8ab89a1145
commit b059c867d2
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ void ChoiceThumbnailRequest::store(const Image& img) {
#ifdef __WXMSW__
// for some reason windows doesn't like completely transparent images if they do not have a mask
// HACK:
if (img.GetWidth() == 16 && img.GetHeight() == 16) {
if (img.HasAlpha() && img.GetWidth() == 16 && img.GetHeight() == 16) {
// is the image empty?
bool empty = true;
int* b = (int*)img.GetAlpha();