From 3eb1d6b1690d3b1c2c6c8c11e1dee1500e89b3d3 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 30 Mar 2011 03:26:47 +0000 Subject: [PATCH] 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 --- vendor/plugins/rfpdf/lib/fpdf/chinese.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vendor/plugins/rfpdf/lib/fpdf/chinese.rb b/vendor/plugins/rfpdf/lib/fpdf/chinese.rb index 731d582a..6fe3eee8 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)