#if wxUSE_HTML && wxUSE_STREAMS
-#ifndef WXPRECOMP
+#ifndef WX_PRECOMP
#include "wx/dynarray.h"
#include "wx/dc.h"
#include "wx/scrolwin.h"
wxHtmlRenderingInfo& WXUNUSED(info)) {}
- DECLARE_NO_COPY_CLASS(wxHtmlImageMapAreaCell)
+ wxDECLARE_NO_COPY_CLASS(wxHtmlImageMapAreaCell);
};
int WXUNUSED(view_y1), int WXUNUSED(view_y2),
wxHtmlRenderingInfo& WXUNUSED(info)) {}
- DECLARE_NO_COPY_CLASS(wxHtmlImageMapCell)
+ wxDECLARE_NO_COPY_CLASS(wxHtmlImageMapCell);
};
wxHtmlImageMapCell *m_imageMap;
wxString m_mapName;
- DECLARE_NO_COPY_CLASS(wxHtmlImageCell)
+ wxDECLARE_NO_COPY_CLASS(wxHtmlImageCell);
};
#if wxUSE_GIF && wxUSE_TIMER
private:
wxHtmlImageCell *m_cell;
- DECLARE_NO_COPY_CLASS(wxGIFTimer)
+ wxDECLARE_NO_COPY_CLASS(wxGIFTimer);
};
#endif
if ( m_gifDecoder->IsAnimation() )
{
m_gifTimer = new wxGIFTimer(this);
- m_gifTimer->Start(m_gifDecoder->GetDelay(0), true);
+ long delay = m_gifDecoder->GetDelay(0);
+ if ( delay == 0 )
+ delay = 1;
+ m_gifTimer->Start(delay, true);
}
else
{
win->Refresh(img.HasMask(), &rect);
}
- timer->Start(m_gifDecoder->GetDelay(m_nCurrFrame), true);
+ long delay = m_gifDecoder->GetDelay(m_nCurrFrame);
+ if ( delay == 0 )
+ delay = 1;
+ timer->Start(delay, true);
}
void wxHtmlImageCell::Layout(int w)