diff options
Diffstat (limited to 'rsvg-image.c')
-rw-r--r-- | rsvg-image.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rsvg-image.c b/rsvg-image.c index 6b090a72..0b9f9a37 100644 --- a/rsvg-image.c +++ b/rsvg-image.c @@ -451,7 +451,8 @@ rsvg_preserve_aspect_ratio(unsigned int aspect_ratio, double width, { neww = *w; newh = *h; - if ((height * *w > width * *h) != (aspect_ratio & RSVG_ASPECT_RATIO_SLICE)) + if ((height * *w > width * *h) == + ((aspect_ratio & RSVG_ASPECT_RATIO_SLICE) == 0)) { neww = width * *h / height; |