aboutsummaryrefslogtreecommitdiff
path: root/Bezier.c
diff options
context:
space:
mode:
Diffstat (limited to 'Bezier.c')
-rw-r--r--Bezier.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Bezier.c b/Bezier.c
index d239c4b..2b63a53 100644
--- a/Bezier.c
+++ b/Bezier.c
@@ -387,6 +387,9 @@ Configure(Item item,
if ((bz->relief != RELIEF_FLAT) && !bz->gradient) {
bz->gradient = ZnGetReliefGradient(wi->interp, wi->win,
ZnNameOfColor(ZnGetGradientColor(wi->win, bz->fill_color, 50.0)));
+ if (bz->gradient == NULL) {
+ status = ZN_ERROR;
+ }
}
if (ISSET(*flags, ZN_TILE_FLAG)) {
Tk_Image tile;