forked from AuroraMiddleware/gtk
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:
parent
83a383e4ba
commit
4cfccde6da
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user