X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/39d16996b7616bf8090b140db74fd0b52d50d169..a7407834c46165658c54a11ba91d4c173ceab1e5:/src/common/gifdecod.cpp diff --git a/src/common/gifdecod.cpp b/src/common/gifdecod.cpp index 784d7bdfab..05c4073524 100644 --- a/src/common/gifdecod.cpp +++ b/src/common/gifdecod.cpp @@ -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;