From 3fd9bda06f5393cf87836bdd4f544a9e23f99594 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 26 Apr 2016 00:01:59 -0400 Subject: css: Fix printing of images When there is only a call in a fallback image, we were errnoneously printing out a comma before it. --- gtk/gtkcssimagefallback.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gtk/gtkcssimagefallback.c') 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); } -- cgit v1.2.1