From: Toshi MARUYAMA Date: Sat, 2 Jul 2011 14:59:30 +0000 (+0000) Subject: PDF: fix ArgumentError MultiCell() in CJK (#8737). X-Git-Tag: 1.2.1~24 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bf0046b5af00ebc1d5f0c0c63d82f61f5934a5d5;p=redmine.git PDF: fix ArgumentError MultiCell() in CJK (#8737). add dummy ln parameter at rfpdf CJK MultiCell method. ln parameter has already added in trunk by r6131, r6132, r6133. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.2-stable@6155 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/vendor/plugins/rfpdf/lib/fpdf/chinese.rb b/vendor/plugins/rfpdf/lib/fpdf/chinese.rb index 5edccca9f..5ac279d70 100644 --- a/vendor/plugins/rfpdf/lib/fpdf/chinese.rb +++ b/vendor/plugins/rfpdf/lib/fpdf/chinese.rb @@ -142,7 +142,7 @@ module PDF_Chinese return l*@font_size/1000 end - def MultiCell(w,h,txt,border=0,align='L',fill=0) + def MultiCell(w,h,txt,border=0,align='L',fill=0,ln=1) if(@current_font['type']=='Type0') MBMultiCell(w,h,txt,border,align,fill) else diff --git a/vendor/plugins/rfpdf/lib/fpdf/japanese.rb b/vendor/plugins/rfpdf/lib/fpdf/japanese.rb index 65ce2c40a..9ac3e2778 100644 --- a/vendor/plugins/rfpdf/lib/fpdf/japanese.rb +++ b/vendor/plugins/rfpdf/lib/fpdf/japanese.rb @@ -118,7 +118,7 @@ module PDF_Japanese return l*@font_size/1000 end - def MultiCell(w,h,txt,border=0,align='L',fill=0) + def MultiCell(w,h,txt,border=0,align='L',fill=0,ln=1) if(@current_font['type']=='Type0') SJISMultiCell(w,h,txt,border,align,fill) else diff --git a/vendor/plugins/rfpdf/lib/fpdf/korean.rb b/vendor/plugins/rfpdf/lib/fpdf/korean.rb index 11df9ffb0..fbea998e7 100644 --- a/vendor/plugins/rfpdf/lib/fpdf/korean.rb +++ b/vendor/plugins/rfpdf/lib/fpdf/korean.rb @@ -111,7 +111,7 @@ UHC_widths={' ' => 333, '!' => 416, '"' => 416, '#' => 833, '$' => 625, '%' => 9 return l*@font_size/1000 end - def MultiCell(w,h,txt,border=0,align='L',fill=0) + def MultiCell(w,h,txt,border=0,align='L',fill=0,ln=1) if(@current_font['type']=='Type0') MBMultiCell(w,h,txt,border,align,fill) else