summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2015-01-30 21:46:11 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2015-01-30 21:46:11 +0100
commit582702a4903a718c7d3ca5a153afef3f3006c9f0 (patch)
treec52d8a6bf76ee444683cd3949640ffa35da0de11
parentfa871cef365c57f80442a9a02c34ff4bf82ae833 (diff)
downloadcataract-582702a4903a718c7d3ca5a153afef3f3006c9f0.tar.xz
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).
-rw-r--r--src/generators.c4
1 files changed, 0 insertions, 4 deletions
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;
}