Commit 3fd9bda0 authored by Matthias Clasen's avatar Matthias Clasen

css: Fix printing of images

When there is only a call in a fallback image, we were errnoneously
printing out a comma before it.
parent 0eefe81f
...@@ -99,7 +99,8 @@ gtk_css_image_fallback_print (GtkCssImage *image, ...@@ -99,7 +99,8 @@ gtk_css_image_fallback_print (GtkCssImage *image,
} }
if (fallback->color) if (fallback->color)
{ {
g_string_append (string, ","); if (fallback->n_images > 0)
g_string_append (string, ",");
_gtk_css_value_print (fallback->color, string); _gtk_css_value_print (fallback->color, string);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment