mirror of https://github.com/GNOME/gimp.git
app: don't g_assert_not_reached on GIMP_PDB_FAILED errors
calling in a script (gimp-file-load-layer 1 image "notexists.bmp") used to crash GIMP with the following message: ** Gimp-PDB:ERROR:gimpprocedure.c:491:gimp_procedure_get_return_values: code should not be reached gimp-2.7: terminated: Aborted
This commit is contained in:
parent
0c236cbc48
commit
1658460523
|
@ -476,6 +476,7 @@ gimp_procedure_get_return_values (GimpProcedure *procedure,
|
|||
{
|
||||
switch ((GimpPdbErrorCode) error->code)
|
||||
{
|
||||
case GIMP_PDB_FAILED:
|
||||
case GIMP_PDB_PROCEDURE_NOT_FOUND:
|
||||
case GIMP_PDB_INVALID_ARGUMENT:
|
||||
case GIMP_PDB_INVALID_RETURN_VALUE:
|
||||
|
|
Loading…
Reference in New Issue