+ if ((error == wxGIF_TRUNCATED) && verbose)
+ {
+ wxLogError(_("GIF: data stream seems to be truncated."));
+ /* go on; image data is OK */
+ }
+
+ if (ok)
+ {
+ ok = decod->ConvertToImage(index != -1 ? (size_t)index : 0, image);
+ }
+ else
+ {
+ wxLogError(_("GIF: Invalid gif index."));
+ }