From 4e2cb95d3c24d6c080c38d896785b0efc48ec00c Mon Sep 17 00:00:00 2001 From: gc Date: Fri, 24 Feb 2006 21:31:42 +0000 Subject: [PATCH] add some missing cleanups --- bin/booh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bin/booh b/bin/booh index 3e509b7..da0028e 100755 --- a/bin/booh +++ b/bin/booh @@ -1125,8 +1125,8 @@ def add_thumbnail(autotable, filename, type, thumbnail_img, caption) } rotate_and_cleanup = proc { |angle| - rotate(angle, thumbnail_img, img, $xmldir.elements["*[@filename='#{filename}']"], '', $default_thumbnails[:x], $default_thumbnails[:y]) cleanup_all_thumbnails.call + rotate(angle, thumbnail_img, img, $xmldir.elements["*[@filename='#{filename}']"], '', $default_thumbnails[:x], $default_thumbnails[:y]) } move = proc { |direction| @@ -1156,11 +1156,11 @@ def add_thumbnail(autotable, filename, type, thumbnail_img, caption) color_swap_and_cleanup = proc { perform_color_swap_and_cleanup = proc { + cleanup_all_thumbnails.call color_swap($xmldir.elements["*[@filename='#{filename}']"], '') my_gen_real_thumbnail.call } - cleanup_all_thumbnails.call perform_color_swap_and_cleanup.call save_undo(_("color swap"), @@ -1180,6 +1180,7 @@ def add_thumbnail(autotable, filename, type, thumbnail_img, caption) change_frame_offset_and_cleanup_real = proc { |values| perform_change_frame_offset_and_cleanup = proc { |val| + cleanup_all_thumbnails.call change_frame_offset($xmldir.elements["*[@filename='#{filename}']"], '', val) my_gen_real_thumbnail.call } @@ -1208,6 +1209,7 @@ def add_thumbnail(autotable, filename, type, thumbnail_img, caption) change_pano_amount_and_cleanup_real = proc { |values| perform_change_pano_amount_and_cleanup = proc { |val| + cleanup_all_thumbnails.call change_pano_amount($xmldir.elements["*[@filename='#{filename}']"], '', val) } perform_change_pano_amount_and_cleanup.call(values[:new]) @@ -1235,10 +1237,10 @@ def add_thumbnail(autotable, filename, type, thumbnail_img, caption) whitebalance_and_cleanup_real = proc { |values| perform_change_whitebalance_and_cleanup = proc { |val| + cleanup_all_thumbnails.call change_whitebalance($xmldir.elements["*[@filename='#{filename}']"], '', val) recalc_whitebalance(val, fullpath, thumbnail_img, img, $xmldir.elements["*[@filename='#{filename}']"], '', $default_thumbnails[:x], $default_thumbnails[:y], '') - cleanup_all_thumbnails.call } perform_change_whitebalance_and_cleanup.call(values[:new]) @@ -1266,10 +1268,10 @@ def add_thumbnail(autotable, filename, type, thumbnail_img, caption) gammacorrect_and_cleanup_real = proc { |values| perform_change_gammacorrect_and_cleanup = Proc.new { |val| + cleanup_all_thumbnails.call change_gammacorrect($xmldir.elements["*[@filename='#{filename}']"], '', val) recalc_gammacorrect(val, fullpath, thumbnail_img, img, $xmldir.elements["*[@filename='#{filename}']"], '', $default_thumbnails[:x], $default_thumbnails[:y], '') - cleanup_all_thumbnails.call } perform_change_gammacorrect_and_cleanup.call(values[:new]) @@ -1297,6 +1299,7 @@ def add_thumbnail(autotable, filename, type, thumbnail_img, caption) enhance_and_cleanup = proc { perform_enhance_and_cleanup = proc { + cleanup_all_thumbnails.call enhance($xmldir.elements["*[@filename='#{filename}']"], '') my_gen_real_thumbnail.call } -- 2.30.4