summaryrefslogtreecommitdiffstats
path: root/lib/plugins
diff options
context:
space:
mode:
authorEtienne Massip <etienne.massip@gmail.com>2012-07-11 00:17:45 +0000
committerEtienne Massip <etienne.massip@gmail.com>2012-07-11 00:17:45 +0000
commit6bf60e8c206b3c75d18c824cb8b98b10a6d6a69c (patch)
tree704b68e5fe95b23c624b335e0b671907f8678183 /lib/plugins
parent823ac010c5bc9468ce2326df55f282e4d7a7a923 (diff)
downloadredmine-6bf60e8c206b3c75d18c824cb8b98b10a6d6a69c.tar.gz
redmine-6bf60e8c206b3c75d18c824cb8b98b10a6d6a69c.zip
Fixes transparency issue.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9974 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/plugins')
-rwxr-xr-xlib/plugins/rfpdf/lib/tcpdf.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/plugins/rfpdf/lib/tcpdf.rb b/lib/plugins/rfpdf/lib/tcpdf.rb
index be5bd1870..5c15b1aa7 100755
--- a/lib/plugins/rfpdf/lib/tcpdf.rb
+++ b/lib/plugins/rfpdf/lib/tcpdf.rb
@@ -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