Commit c548d5d3 authored by Jehan's avatar Jehan

Bug 792657 - A useless error message when cancelling opening a .svgz.

Use the new gimp_get_pdb_status() to forward the error returned by
gimp_file_load(). Previous code was always returning
GIMP_PDB_EXECUTION_ERROR when the file load was failing, but this was
not granular enough. In particular when the file load is actually
interactively cancelled through Esc or the "Cancel" button, we don't
want to display an error message on screen. Therefore we forward the
actual error raised by the underlining plug-in.
parent 2e18c80c
......@@ -508,7 +508,10 @@ load_image (const Compressor *compressor,
/* Forward the return status of the underlining plug-in for the
* given format.
*status = gimp_get_pdb_status ();
g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
"%s", gimp_get_pdb_error ());
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment