Actions
Defect #32832
closedFrozenError when exporting content to PDF in some languages
Defect #32832:
FrozenError when exporting content to PDF in some languages
Resolution:
Fixed
Affected version:
Files
Actions
Added by Pavel Rosický almost 7 years ago. Updated almost 7 years ago.
Files
| fix_pdfexport.patch (1.46 KB) fix_pdfexport.patch | Pavel Rosický, 2020-01-17 20:11 | ||
| fix_pdfexport2.patch (1.3 KB) fix_pdfexport2.patch | Pavel Rosický, 2020-01-18 08:45 |
I think the change in SetFontStyle can be ommitted and fixing only SetFont is enough. What do you think?
diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb
index c8189367b..85beb8bdb 100644
--- a/lib/redmine/export/pdf.rb
+++ b/lib/redmine/export/pdf.rb
@@ -52,6 +52,7 @@ module Redmine
end
def SetFont(family, style='', size=0, fontfile='')
+ style = +style
# FreeSerif Bold Thai font has problem.
style.delete!('B') if family.to_s.casecmp('freeserif') == 0
# DejaVuSans Italic Arabic and Persian font has problem.
you're right
Committed the patch. Thank you.