diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/image.c b/src/image.c index 69a529e8c35..76a19a68b0d 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -8129,10 +8129,10 @@ compute_image_size (size_t width, size_t height, | |||
| 8129 | width = width * scale; | 8129 | width = width * scale; |
| 8130 | height = height * scale; | 8130 | height = height * scale; |
| 8131 | 8131 | ||
| 8132 | if (desired_width != -1 && desired_height == -1) | 8132 | if (desired_width != -1) |
| 8133 | /* Width known, calculate height. */ | 8133 | /* Width known, calculate height. */ |
| 8134 | desired_height = scale_image_size (desired_width, width, height); | 8134 | desired_height = scale_image_size (desired_width, width, height); |
| 8135 | else if (desired_width == -1 && desired_height != -1) | 8135 | else if (desired_height != -1) |
| 8136 | /* Height known, calculate width. */ | 8136 | /* Height known, calculate width. */ |
| 8137 | desired_width = scale_image_size (desired_height, height, width); | 8137 | desired_width = scale_image_size (desired_height, height, width); |
| 8138 | else | 8138 | else |