summaryrefslogtreecommitdiff
path: root/gtk/gtkcssimagefallback.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2017-01-13 01:43:07 +0100
committerBenjamin Otte <otte@redhat.com>2017-01-13 03:38:36 +0100
commite5e5beafa5b86eeb33e8384942e96e8fcf20c514 (patch)
tree1d74e4a807f12ee9fd585f4a50a632d72898922c /gtk/gtkcssimagefallback.c
parenta06b1ea1baecf6f0211726e901af93995f01a923 (diff)
downloadgtk+-e5e5beafa5b86eeb33e8384942e96e8fcf20c514.tar.gz
cssimage: Fallback images have no aspect ratio
The aspect ratio for fallback image was incorrectly set to 1. Reftest is included.
Diffstat (limited to 'gtk/gtkcssimagefallback.c')
-rw-r--r--gtk/gtkcssimagefallback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcssimagefallback.c b/gtk/gtkcssimagefallback.c
index 316f422377..a1f74e6859 100644
--- a/gtk/gtkcssimagefallback.c
+++ b/gtk/gtkcssimagefallback.c
@@ -56,7 +56,7 @@ gtk_css_image_fallback_get_aspect_ratio (GtkCssImage *image)
GtkCssImageFallback *fallback = GTK_CSS_IMAGE_FALLBACK (image);
if (fallback->used < 0)
- return 1;
+ return 0;
return _gtk_css_image_get_aspect_ratio (fallback->images[fallback->used]);
}