OSDN Git Service

PDF: fix ArgumentError MultiCell() in CJK (#8737).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 2 Jul 2011 14:59:30 +0000 (14:59 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 2 Jul 2011 14:59:30 +0000 (14:59 +0000)
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

vendor/plugins/rfpdf/lib/fpdf/chinese.rb
vendor/plugins/rfpdf/lib/fpdf/japanese.rb
vendor/plugins/rfpdf/lib/fpdf/korean.rb

index 5edccca..5ac279d 100644 (file)
@@ -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
index 65ce2c4..9ac3e27 100644 (file)
@@ -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
index 11df9ff..fbea998 100644 (file)
@@ -111,7 +111,7 @@ UHC_widths={' ' => 333, '!' => 416, '"' => 416, '#' => 833, '$' => 625, '%' => 9
        return l*@font_size/1000\r
   end\r
 \r
-  def MultiCell(w,h,txt,border=0,align='L',fill=0)\r
+  def MultiCell(w,h,txt,border=0,align='L',fill=0,ln=1)\r
        if(@current_font['type']=='Type0')\r
                MBMultiCell(w,h,txt,border,align,fill)\r
        else\r