Defect #32832
FrozenError when exporting content to PDF in some languages
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | % Done: | 0% | ||
Category: | PDF export | |||
Target version: | 4.1.1 | |||
Resolution: | Fixed | Affected version: |
Associated revisions
FrozenError when exporting gantt to PDF in some languages (#32832).
Patch by Pavel Rosický.
History
#1
Updated by Go MAEDA 12 months ago
- Tracker changed from Patch to Defect
- Status changed from New to Confirmed
- Target version set to 4.1.1
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.
#2
Updated by Pavel Rosický 12 months ago
you're right
#3
Updated by Pavel Rosický 12 months ago
- File fix_pdfexport2.patch
added