1 Protection against 0 (too short in general) delay in GIF animation.
2 It caused xchm to hang just animating GIF without actually displaying anything.
3 (affected wxgtk*; not wxx11univ not because of different implementation)
5 --- wxWidgets-2.5.3/src/html/m_image.cpp.orig 2004-09-28 13:18:36.000000000 +0200
6 +++ wxWidgets-2.5.3/src/html/m_image.cpp 2005-02-20 21:06:55.564796160 +0100
9 DECLARE_NO_COPY_CLASS(wxGIFTimer)
12 +static int safedelay(int ms)
14 + return (ms >= 10) ? ms : 10;
20 if ( m_gifDecoder->IsAnimation() )
22 m_gifTimer = new wxGIFTimer(this);
23 - m_gifTimer->Start(m_gifDecoder->GetDelay(), true);
24 + m_gifTimer->Start(safedelay(m_gifDecoder->GetDelay()), true);
29 m_window->Refresh(img.HasMask(), &rect);
32 - timer->Start(m_gifDecoder->GetDelay(), true);
33 + timer->Start(safedelay(m_gifDecoder->GetDelay()), true);
36 void wxHtmlImageCell::Layout(int w)