diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2014-09-15 00:40:22 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2014-09-15 00:40:22 +0200 |
| commit | d45c36f28e6d0a720df861c5497b4fe022d385b0 (patch) | |
| tree | d4e94633a39589df40fdcb1f005678fdc7f05282 /src | |
| parent | efa3be408a2420f177c2e7cf798f92f3efdad36b (diff) | |
| download | cataract-d45c36f28e6d0a720df861c5497b4fe022d385b0.tar.xz | |
theming: Define meaning of the <no_resize> tag
Although probably not very common scenario, let's be consistent across
all defined image sizes and clearly state that an explicitly supplied
image file for an optional image size should carry the tag in order
not to get resized.
Diffstat (limited to 'src')
| -rw-r--r-- | src/generators.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/generators.c b/src/generators.c index 2483175..a2f7a65 100644 --- a/src/generators.c +++ b/src/generators.c @@ -230,7 +230,7 @@ generate_image (TGallerySetup *setup, res = res || needs_update (img_src, img_dst); if (! query_update) { /* Copy the source file */ - if ((is_preview && item->preview) || (is_original && image_size->no_resize)) { + if (image_size->no_resize && ((is_preview && item->preview) || is_original)) { if (! copy_file (img_src, img_dst)) log_error (" Error copying image %s to %s\n", img_src, img_dst); } |
