diff src/image-overlay.c @ 888:d8e1e820cee7

reload changed images
author nadvornik
date Thu, 17 Jul 2008 21:51:21 +0000
parents e418c33a49c8
children 323dab9321bb
line wrap: on
line diff
--- a/src/image-overlay.c	Tue Jul 15 15:37:14 2008 +0000
+++ b/src/image-overlay.c	Thu Jul 17 21:51:21 2008 +0000
@@ -520,8 +520,8 @@
 		osd_template_insert(vars, "number", g_strdup_printf("%d", n), OSDT_NO_DUP);
 		osd_template_insert(vars, "total", g_strdup_printf("%d", t), OSDT_NO_DUP);
 		osd_template_insert(vars, "name", (gchar *) name, OSDT_NONE);
-	 	osd_template_insert(vars, "date", (gchar *) text_from_time(imd->mtime), OSDT_NONE);
-		osd_template_insert(vars, "size", text_from_size_abrev(imd->size), OSDT_FREE);
+	 	osd_template_insert(vars, "date", imd->image_fd ? ((gchar *) text_from_time(imd->image_fd->date)) : "", OSDT_NONE);
+		osd_template_insert(vars, "size", imd->image_fd ? (text_from_size_abrev(imd->image_fd->size)) : g_strdup(""), OSDT_FREE);
 		osd_template_insert(vars, "zoom", image_zoom_get_as_text(imd), OSDT_FREE);
 	
 		if (!imd->unknown)