From 4cfccde6dac462e5a65a80848f2a5351e5c575c7 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Fri, 27 May 2011 18:13:35 -0400 Subject: [PATCH] border-image: ensure image->resolved is set when resolving the gradient https://bugzilla.gnome.org/show_bug.cgi?id=651194 --- gtk/gtkborderimage.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtk/gtkborderimage.c b/gtk/gtkborderimage.c index 80ec80034e..939d45fb81 100644 --- a/gtk/gtkborderimage.c +++ b/gtk/gtkborderimage.c @@ -282,7 +282,10 @@ _gtk_border_image_resolve (GtkBorderImage *image, if (image->resolved) return _gtk_border_image_ref (image); - if (!gtk_gradient_resolve (image->source_gradient, props, &pattern)) + image->resolved = + gtk_gradient_resolve (image->source_gradient, props, &pattern); + + if (!image->resolved) return NULL; resolved_image = _gtk_border_image_new (pattern, &image->slice, &image->repeat);