]> source.dussan.org Git - redmine.git/commitdiff
Fixes transparency issue.
authorEtienne Massip <etienne.massip@gmail.com>
Wed, 11 Jul 2012 00:17:45 +0000 (00:17 +0000)
committerEtienne Massip <etienne.massip@gmail.com>
Wed, 11 Jul 2012 00:17:45 +0000 (00:17 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9974 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/plugins/rfpdf/lib/tcpdf.rb

index be5bd1870d3014dc90f4a328f0a0673b31db3a94..5c15b1aa774aa2f1d71da8098ff1b29df613f0d5 100755 (executable)
@@ -2634,7 +2634,7 @@ class TCPDF
                        if (!info['trns'].nil? and info['trns'].kind_of?(Array))
                                trns='';
                                0.upto(info['trns'].length) do |i|
-                                       trns << info['trns'][i] + ' ' + info['trns'][i] + ' ';
+                                       trns << ("#{info['trns'][i]} " * 2);
                                end
                                out('/Mask [' + trns + ']');
                        end
@@ -2975,8 +2975,8 @@ class TCPDF
                                elsif (ct==2)
                                        trns = t[[1].unpack('C')[0], t[3].unpack('C')[0], t[5].unpack('C')[0]]
                                else
-                                       pos=t.include?(0.chr);
-                                       if (pos!=false)
+                                       pos=t.index(0.chr);
+                                       unless (pos.nil?)
                                                trns = [pos]
                                        end
                                end