border-image: ensure image->resolved is set when resolving the gradient

https://bugzilla.gnome.org/show_bug.cgi?id=651194
This commit is contained in:
Cosimo Cecchi 2011-05-27 18:13:35 -04:00 committed by Benjamin Otte
parent 83a383e4ba
commit 4cfccde6da

View File

@ -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);