From d45c36f28e6d0a720df861c5497b4fe022d385b0 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Mon, 15 Sep 2014 00:40:22 +0200 Subject: theming: Define meaning of the 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. --- src/generators.c | 2 +- templates/default.xml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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); } diff --git a/templates/default.xml b/templates/default.xml index d2b0b63..318531c 100644 --- a/templates/default.xml +++ b/templates/default.xml @@ -34,6 +34,12 @@ + + -- cgit v1.2.3