]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/gifdecod.cpp
clicking on a panel without children should give it the focus (closes 215436)
[wxWidgets.git] / src / common / gifdecod.cpp
index 784d7bdfab11dfbd6eeff229564443e21a5f6af5..05c4073524e5be2ea98f76774cbe2c2d649cc34a 100644 (file)
@@ -21,6 +21,7 @@
 
 #ifndef WX_PRECOMP
 #  include "wx/defs.h"
+#  include "wx/palette.h"
 #endif
 
 #if wxUSE_STREAMS && wxUSE_GIF
@@ -279,7 +280,7 @@ bool wxGIFDecoder::GoFrame(int which)
     {
         m_pimage = m_pfirst;
 
-        for (i = 1; i < which; i++)
+        for (i = 0; i < which; i++)
             m_pimage = m_pimage->next;
 
         return TRUE;