[gimp] app: don't g_assert_not_reached on GIMP_PDB_FAILED errors
- From: Massimo Valentini <mvalentini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: don't g_assert_not_reached on GIMP_PDB_FAILED errors
- Date: Mon, 5 Mar 2012 17:56:37 +0000 (UTC)
commit 16584605231fbc19f84ad3845b89077aa386b730
Author: Massimo Valentini <mvalentini src gnome org>
Date: Mon Mar 5 18:36:03 2012 +0100
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
app/pdb/gimpprocedure.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/app/pdb/gimpprocedure.c b/app/pdb/gimpprocedure.c
index adb1438..83a9cee 100644
--- a/app/pdb/gimpprocedure.c
+++ b/app/pdb/gimpprocedure.c
@@ -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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]