diff options
author | Bert Münnich <ber.t@posteo.de> | 2014-06-10 21:28:10 +0200 |
---|---|---|
committer | Bert Münnich <ber.t@posteo.de> | 2014-06-10 21:28:10 +0200 |
commit | cd02f2dd86a8db621f47f7ec03d33c193c329f29 (patch) | |
tree | 2bb18e2b0980b448b41bbe4b480394ec7dc5732f /thumbs.c | |
parent | d26f39914e813aff492020b3d8463965ca8ca574 (diff) | |
download | nsxiv-cd02f2dd86a8db621f47f7ec03d33c193c329f29.tar.zst |
Small fix for thumbnail cropping
Diffstat (limited to 'thumbs.c')
-rw-r--r-- | thumbs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -284,7 +284,7 @@ bool tns_load(tns_t *tns, int n, const fileinfo_t *file, w = imlib_image_get_width(); h = imlib_image_get_height(); - if (pw > w && ph > h) { + if (pw > w && ph > h && (pw - ph >= 0) == (w - h >= 0)) { zw = (float) pw / (float) w; zh = (float) ph / (float) h; if (zw < zh) { |