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:
parent
cbf5bdd253
commit
c7555f037a
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue