Sfoglia il codice sorgente

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
tags/4.2.0
Go MAEDA 4 anni fa
parent
commit
65d22c7510
2 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 1
    0
      lib/redmine/export/pdf.rb
  2. 2
    2
      test/functional/issues_controller_test.rb

+ 1
- 0
lib/redmine/export/pdf.rb Vedi File

@@ -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
- 2
test/functional/issues_controller_test.rb Vedi File

@@ -1074,7 +1074,7 @@ class IssuesControllerTest < Redmine::ControllerTest
end

def test_index_pdf
["en", "zh", "zh-TW", "ja", "ko"].each do |lang|
["en", "zh", "zh-TW", "ja", "ko", "ar"].each do |lang|
with_settings :default_language => lang do
get :index
assert_response :success
@@ -2674,7 +2674,7 @@ class IssuesControllerTest < Redmine::ControllerTest

def test_export_to_pdf_with_utf8_u_fffd
issue = Issue.generate!(:subject => "�")
["en", "zh", "zh-TW", "ja", "ko"].each do |lang|
["en", "zh", "zh-TW", "ja", "ko", "ar"].each do |lang|
with_settings :default_language => lang do
get(
:show,

Loading…
Annulla
Salva