+ cinfo.err = jpeg_std_error( &jerr.pub );
+ jerr.pub.error_exit = my_error_exit;
+
+ if (!verbose) cinfo.err->output_message=NULL;
+
+ /* Establish the setjmp return context for my_error_exit to use. */
+ if (setjmp(jerr.setjmp_buffer)) {
+ /* If we get here, the JPEG code has signaled an error.
+ * We need to clean up the JPEG object, close the input file, and return.
+ */
+ if (verbose)
+ wxLogError(_("JPEG: Couldn't load - file is probably corrupted."));
+ jpeg_destroy_decompress(&cinfo);
+ if (image->Ok()) image->Destroy();
+ return FALSE;
+ }
+