Fix :scale's affect on :width and :height (bug#47819)

* src/image.c (compute_image_size): Multiply width and height values
by scale.
This commit is contained in:
Alan Third 2021-04-16 19:12:23 +01:00
parent cbf5bdd253
commit c7555f037a

View file

@ -2040,7 +2040,7 @@ compute_image_size (size_t width, size_t height,
int_value = image_get_dimension (img, QCwidth);
if (int_value >= 0)
{
desired_width = int_value;
desired_width = int_value * scale;
/* :width overrides :max-width. */
max_width = -1;
}
@ -2048,7 +2048,7 @@ compute_image_size (size_t width, size_t height,
int_value = image_get_dimension (img, QCheight);
if (int_value >= 0)
{
desired_height = int_value;
desired_height = int_value * scale;
/* :height overrides :max-height. */
max_height = -1;
}