summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rsvg-image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rsvg-image.c b/rsvg-image.c
index c48dee60..bf44ac4a 100644
--- a/rsvg-image.c
+++ b/rsvg-image.c
@@ -442,7 +442,7 @@ rsvg_preserve_aspect_ratio(unsigned int aspect_ratio, double width,
double * x, double * y)
{
double neww, newh;
- if (aspect_ratio)
+ if (aspect_ratio & ~RSVG_ASPECT_RATIO_SLICE)
{
neww = *w;
newh = *h;