summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk/gtkcssimagefallback.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkcssimagefallback.c b/gtk/gtkcssimagefallback.c
index b7c3a9d224..620dd94862 100644
--- a/gtk/gtkcssimagefallback.c
+++ b/gtk/gtkcssimagefallback.c
@@ -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);
}