forked from AuroraMiddleware/gtk
css: Avoid a crash while parsing radial gradients
has_size does not imply that sizes[0] is != NULL.
This commit is contained in:
parent
5af1e87f59
commit
aceba7484f
@ -346,7 +346,7 @@ gtk_css_image_radial_parse (GtkCssImage *image,
|
||||
|
||||
if (has_size && !radial->circle)
|
||||
{
|
||||
if (!radial->sizes[1])
|
||||
if (radial->sizes[0] && !radial->sizes[1])
|
||||
radial->sizes[1] = _gtk_css_value_ref (radial->sizes[0]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user