From 17a3dc9912a2ff5de428d91fa826aba407211783 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Thu, 7 Feb 2008 20:00:54 +0000 Subject: [PATCH] Fixed bug with thumb_status in thumbnail display SVN revision: 2033 --- src/elogd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index e4e5adfe..2897de23 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -11052,14 +11052,14 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL strsubst(thumb_name, sizeof(thumb_name), "-0.png", ""); rsprintf("
\n"); - sprintf(str, "im('att'+%d,'%s','%s','smaller');", index, thumb_name, att[index]); + sprintf(str, "im('att'+'%d','%s','%s','smaller');", index, thumb_name, att[index]); ricon("smaller", loc("Make smaller"), str); - sprintf(str, "im('att'+%d,'%s','%s','larger');", index, thumb_name, att[index]); + sprintf(str, "im('att'+'%d','%s','%s','larger');", index, thumb_name, att[index]); ricon("larger", loc("Make larger"), str); rsprintf(" "); - sprintf(str, "im('att'+%d,'%s','%s','rotleft');", index, thumb_name, att[index]); + sprintf(str, "im('att'+'%d','%s','%s','rotleft');", index, thumb_name, att[index]); ricon("rotleft", loc("Rotate left"), str); - sprintf(str, "im('att'+%d,'%s','%s','rotright');", index, thumb_name, att[index]); + sprintf(str, "im('att'+'%d','%s','%s','rotright');", index, thumb_name, att[index]); ricon("rotright", loc("Rotate right"), str); rsprintf(" "); sprintf(str, "document.form1.jcmd.value='delete';"); @@ -11093,7 +11093,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL if (display_inline) { if (is_image(att[index]) || thumb_status) { - if (thumb_status) { + if (thumb_status == 2) { for (i=0 ; ; i++) { get_thumb_name(file_name, thumb_name, sizeof(thumb_name), i); if (thumb_name[0]) {