From 582702a4903a718c7d3ca5a153afef3f3006c9f0 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Fri, 30 Jan 2015 21:46:11 +0100 Subject: theming: Fix the have_image_size() nofullsize test The "original" image size presence should not really be reported when the "preview" image size substitutes it due to its absence (not defined in the album XML file). --- src/generators.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') diff --git a/src/generators.c b/src/generators.c index e1b1fdc..9183888 100644 --- a/src/generators.c +++ b/src/generators.c @@ -362,10 +362,6 @@ have_image_size_cb (gchar **args, gpointer user_data) if (is_original && data->item->path && ! IS_NOFULLSIZE (data->item, data->items, data->setup)) return TRUE; - if (is_original && (! data->item->path || IS_NOFULLSIZE (data->item, data->items, data->setup)) && - data->item->image_sizes && g_hash_table_lookup (data->item->image_sizes, "preview")) - return TRUE; - return FALSE; } -- cgit v1.2.3