#include "wx/icon.h"
#include "wx/log.h"
#include "wx/intl.h"
+ #include "wx/bitmap.h"
#endif
#ifndef _WX_IMAGE_H_
size_t count = wxImage::GetImageCount( file, type );
size_t i;
wxImage image;
- wxIcon tmp;
for( i = 0; i < count; ++i )
{
continue;
}
- tmp.CopyFromBitmap( wxBitmap( image ) );
- AddIcon( tmp );
+ wxIcon* tmp = new wxIcon();
+ tmp->CopyFromBitmap( wxBitmap( image ) );
+ AddIcon( *tmp );
+ delete tmp;
}
}