Merge branch 'gtk-3-24_inkscape2932' into 'gtk-3-24'

Backport css: Avoid a crash while parsing radial gradients

See merge request GNOME/gtk!4161
This commit is contained in:
Matthias Clasen 2021-11-16 21:30:10 +00:00
commit 7f8efb6b8d

View File

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