Commit 760c835a authored by Paolo Bacchilega's avatar Paolo Bacchilega

jpeg loader: reset load_scaled if the image is loaded at the original size

parent f682c212
......@@ -220,8 +220,10 @@ _cairo_image_surface_create_from_jpeg (GInputStream *istream,
}
}
if (srcinfo.scale_denom == 0)
if (srcinfo.scale_denom <= 0) {
srcinfo.scale_denom = srcinfo.scale_num;
load_scaled = FALSE;
}
}
jpeg_calc_output_dimensions (&srcinfo);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment