css: Fix printing of images

When there is only a call in a fallback image, we were errnoneously
printing out a comma before it.
This commit is contained in:
Matthias Clasen 2016-04-26 00:01:59 -04:00
parent 0eefe81f37
commit 3fd9bda06f

View File

@ -99,7 +99,8 @@ gtk_css_image_fallback_print (GtkCssImage *image,
}
if (fallback->color)
{
g_string_append (string, ",");
if (fallback->n_images > 0)
g_string_append (string, ",");
_gtk_css_value_print (fallback->color, string);
}