From: Toshi MARUYAMA Date: Wed, 30 Mar 2011 03:26:47 +0000 (+0000) Subject: PDF: transplant r393 (#61). X-Git-Tag: 1.2.0~595 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b9b2f2454065a561d89374ed4a6e68d2b3ae6e2a;p=redmine.git PDF: transplant r393 (#61). Added chinese simplified translation (Andy Wu) Fixed rfpdf chinese.rb git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5250 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/vendor/plugins/rfpdf/lib/fpdf/chinese.rb b/vendor/plugins/rfpdf/lib/fpdf/chinese.rb index 731d582a2..6fe3eee8a 100644 --- a/vendor/plugins/rfpdf/lib/fpdf/chinese.rb +++ b/vendor/plugins/rfpdf/lib/fpdf/chinese.rb @@ -132,7 +132,7 @@ module PDF_Chinese while(iwmax) #Automatic line break if(sep==-1 or i==j) @@ -233,7 +233,7 @@ module PDF_Chinese end end #Last chunk - if(border and not border.index('B').nil?) + if(border and not border.to_s.index('B').nil?) b+='B' end Cell(w,h,s[j,i-j],b,2,align,fill)