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
This commit is contained in:
parent
3de4afe53a
commit
bf0046b5af
|
@ -142,7 +142,7 @@ module PDF_Chinese
|
||||||
return l*@font_size/1000
|
return l*@font_size/1000
|
||||||
end
|
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')
|
if(@current_font['type']=='Type0')
|
||||||
MBMultiCell(w,h,txt,border,align,fill)
|
MBMultiCell(w,h,txt,border,align,fill)
|
||||||
else
|
else
|
||||||
|
|
|
@ -118,7 +118,7 @@ module PDF_Japanese
|
||||||
return l*@font_size/1000
|
return l*@font_size/1000
|
||||||
end
|
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')
|
if(@current_font['type']=='Type0')
|
||||||
SJISMultiCell(w,h,txt,border,align,fill)
|
SJISMultiCell(w,h,txt,border,align,fill)
|
||||||
else
|
else
|
||||||
|
|
|
@ -111,7 +111,7 @@ UHC_widths={' ' => 333, '!' => 416, '"' => 416, '#' => 833, '$' => 625, '%' => 9
|
||||||
return l*@font_size/1000
|
return l*@font_size/1000
|
||||||
end
|
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')
|
if(@current_font['type']=='Type0')
|
||||||
MBMultiCell(w,h,txt,border,align,fill)
|
MBMultiCell(w,h,txt,border,align,fill)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue