diff options
author | Matthias Clasen <mclasen@redhat.com> | 2016-04-26 00:01:59 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-04-26 00:03:09 -0400 |
commit | 3fd9bda06f5393cf87836bdd4f544a9e23f99594 (patch) | |
tree | 474b40b1890f42cbe345b6e6ffcf06802574ff3d /gtk/gtkcssimagefallback.c | |
parent | 0eefe81f3736bfbd665fcfed2d57b788fcf3c126 (diff) | |
download | gtk+-3fd9bda06f5393cf87836bdd4f544a9e23f99594.tar.gz |
css: Fix printing of images
When there is only a call in a fallback image, we were errnoneously
printing out a comma before it.
Diffstat (limited to 'gtk/gtkcssimagefallback.c')
-rw-r--r-- | gtk/gtkcssimagefallback.c | 3 |
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); } |