#ifndef WX_PRECOMP
#include "wx/settings.h"
- #include "wx/image.h"
#include "wx/icon.h"
#include "wx/log.h"
#include "wx/intl.h"
#endif
+#ifndef _WX_IMAGE_H_
+ #include "wx/image.h"
+#endif
+
#include "wx/iconbndl.h"
#include "wx/arrimpl.cpp"
for( i = 0; i < max; ++i )
{
+ if( !m_icons[i].Ok() )
+ continue;
wxCoord sx = m_icons[i].GetWidth(), sy = m_icons[i].GetHeight();
// requested size
if( sx == size.x && sy == size.y )
for( i = 0; i < max; ++i )
{
wxIcon& tmp = m_icons[i];
- if( tmp.GetWidth() == icon.GetWidth() &&
+ if( tmp.Ok() && tmp.GetWidth() == icon.GetWidth() &&
tmp.GetHeight() == icon.GetHeight() )
{
tmp = icon;