fix bug of wrong image when cancelling white balance modification
authorgc <gc>
Thu, 7 Jul 2005 19:27:44 +0000 (19:27 +0000)
committergc <gc>
Thu, 7 Jul 2005 19:27:44 +0000 (19:27 +0000)
bin/booh

index 531031cd4839fb4a9199a697252a7569258f1621..0553716a9c12373a438c8e67652c72660bd4b7bf 100755 (executable)
--- a/bin/booh
+++ b/bin/booh
@@ -493,7 +493,6 @@ def recalc_whitebalance(level, orig, thumbnail_img, img, xmlelem, attributes_pre
                                 xmlelem, attributes_prefix == '' ? $default_size['thumbnails'] : $albums_thumbnail_size, infotype)
         $modified_pixbufs[thumbnail_img] ||= {}
         $modified_pixbufs[thumbnail_img][:orig] = pixbuf_or_nil(destfile)
-        system("rm -f '#{destfile}'")
         xmlelem.add_attribute("#{attributes_prefix}white-balance", save_whitebalance)
         $modified_pixbufs[thumbnail_img][:angle_to_orig] = 0
     end
@@ -549,6 +548,7 @@ slider below the image to the left for more blue, to the right for more yellow.
         else
             $modified_pixbufs[thumbnail_img] ||= {}
             $modified_pixbufs[thumbnail_img][:whitebalance] = value.to_f
+            $modified_pixbufs[thumbnail_img][:pixbuf] = img_.pixbuf
             dialog.destroy
             return nil
         end