nsxivcd02f2d
Small fix for thumbnail cropping
+2 −2
2 files changed
| @@ -1,4 +1,4 @@ | |||
| 1 | − | VERSION = git-20140609 | |
| 1 | + | VERSION = git-20140610 | |
| 2 | 2 | ||
| 3 | 3 | PREFIX = /usr/local | |
| 4 | 4 | MANPREFIX = $(PREFIX)/share/man | |
| @@ -284,7 +284,7 @@ bool tns_load(tns_t *tns, int n, const fileinfo_t *file, | |||
| 284 | 284 | w = imlib_image_get_width(); | |
| 285 | 285 | h = imlib_image_get_height(); | |
| 286 | 286 | ||
| 287 | − | if (pw > w && ph > h) { | |
| 287 | + | if (pw > w && ph > h && (pw - ph >= 0) == (w - h >= 0)) { | |
| 288 | 288 | zw = (float) pw / (float) w; | |
| 289 | 289 | zh = (float) ph / (float) h; | |
| 290 | 290 | if (zw < zh) { | |