aboutsummaryrefslogtreecommitdiff
path: root/generic/Item.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/Item.c')
-rw-r--r--generic/Item.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/Item.c b/generic/Item.c
index 752e330..0a06e9b 100644
--- a/generic/Item.c
+++ b/generic/Item.c
@@ -3767,6 +3767,9 @@ ConfigureField(FieldSet field_set,
if ((field_ptr->relief != RELIEF_FLAT) && !field_ptr->gradient) {
field_ptr->gradient = ZnGetReliefGradient(wi->interp, wi->win,
ZnNameOfColor(field_ptr->back_color));
+ if (field_ptr->gradient) {
+ return ZN_ERROR;
+ }
}
if (ISSET(*flags, ZN_IMAGE_FLAG)) {