1 --- wxWidgets-2.7.1/src/html/m_image.cpp.orig 2006-10-12 14:52:20.000000000 +0200
2 +++ wxWidgets-2.7.1/src/html/m_image.cpp 2006-10-15 20:32:56.000000000 +0200
5 DECLARE_NO_COPY_CLASS(wxGIFTimer)
8 +static int safedelay(int ms)
10 + return (ms >= 10) ? ms : 10;
16 if ( m_gifDecoder->IsAnimation() )
18 m_gifTimer = new wxGIFTimer(this);
19 - m_gifTimer->Start(m_gifDecoder->GetDelay(0), true);
20 + m_gifTimer->Start(safedelay(m_gifDecoder->GetDelay(0)), true);
25 win->Refresh(img.HasMask(), &rect);
28 - timer->Start(m_gifDecoder->GetDelay(m_nCurrFrame), true);
29 + timer->Start(safedelay(m_gifDecoder->GetDelay(m_nCurrFrame)), true);
32 void wxHtmlImageCell::Layout(int w)