diff options
| author | Lars Ingebrigtsen | 2017-07-15 03:21:07 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2017-07-15 03:21:07 +0200 |
| commit | 511fe21b88f7468a5232434b556f886fa985a5aa (patch) | |
| tree | 4128c8ebe8253c74e1979a53bc08c264b3750361 /src | |
| parent | ae56c9674b4668ded392c66d46aa22db902ddd71 (diff) | |
| download | emacs-511fe21b88f7468a5232434b556f886fa985a5aa.tar.gz emacs-511fe21b88f7468a5232434b556f886fa985a5aa.zip | |
src/image.c (compute_image_size): Remove superfluous checks.
* src/image.c (compute_image_size): Remove superfluous checks.
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 |