]> source.dussan.org Git - redmine.git/commitdiff
Code cleanup.
authorEtienne Massip <etienne.massip@gmail.com>
Tue, 10 Jul 2012 20:23:49 +0000 (20:23 +0000)
committerEtienne Massip <etienne.massip@gmail.com>
Tue, 10 Jul 2012 20:23:49 +0000 (20:23 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9971 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/plugins/rfpdf/lib/tcpdf.rb

index 83996bd09a4de82a5f00588e44408ad98e691609..de62859a12b9b33090d8dd7db02c571adf04c8eb 100755 (executable)
@@ -2064,11 +2064,10 @@ class TCPDF
                                img = Magick::ImageList.new(file)
                                img.format = "PNG"     # convert to PNG from gif 
                                img.opacity = 0        # PNG alpha channel delete
-                               File.open( @@k_path_cache + File::basename(file), 'w'){|f|
+                               open( @@k_path_cache + File::basename(file), 'w') do |f|
                                        f.binmode
                                        f.print img.to_blob
-                                       f.close
-                               }
+                               end
                                info=parsepng( @@k_path_cache + File::basename(file));
                                File.delete( @@k_path_cache + File::basename(file))
                        else