summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-01-18 09:58:39 +0000
committerGo MAEDA <maeda@farend.jp>2020-01-18 09:58:39 +0000
commit65d22c751067f9e8285e169586f004c86d51373e (patch)
tree284d491b7686301921b951f0ec09470f3832873b /lib
parenta7ae2ec0aa8289149d60cca907f827b72d2edc34 (diff)
downloadredmine-65d22c751067f9e8285e169586f004c86d51373e.tar.gz
redmine-65d22c751067f9e8285e169586f004c86d51373e.zip
FrozenError when exporting gantt to PDF in some languages (#32832).
Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@19435 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/export/pdf.rb1
1 files changed, 1 insertions, 0 deletions
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.