diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-05-06 10:40:40 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-05-06 10:40:40 +0000 |
commit | e6e0578d29791d271f150e5b3d9ca573b5531fbd (patch) | |
tree | 125857790d4e4916e164d60110eb762dcdd6cd0b /vendor | |
parent | 479d9380a7ecd3ebfdb2dfbf377ee7498800c5ff (diff) | |
download | redmine-e6e0578d29791d271f150e5b3d9ca573b5531fbd.tar.gz redmine-e6e0578d29791d271f150e5b3d9ca573b5531fbd.zip |
PDF: fix automatic line break problem with TCPDF (#8310).
Contributed by Jun NAITOH.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5664 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'vendor')
-rwxr-xr-x | vendor/plugins/rfpdf/lib/tcpdf.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/plugins/rfpdf/lib/tcpdf.rb b/vendor/plugins/rfpdf/lib/tcpdf.rb index 1e4443057..542d2fe06 100755 --- a/vendor/plugins/rfpdf/lib/tcpdf.rb +++ b/vendor/plugins/rfpdf/lib/tcpdf.rb @@ -1827,7 +1827,7 @@ class TCPDF ns += 1; end - l = GetStringWidth(s[from_j, to_index-from_j]); + l = GetStringWidth(s[from_j, to_index - from_j + 1]); if (l > wmax) #Automatic line break @@ -1946,7 +1946,7 @@ class TCPDF if (c == " "[0]) sep= i; end - l = GetStringWidth(s[j, i-j]); + l = GetStringWidth(s[j, i - j + 1]); if (l > wmax) #Automatic line break (word wrapping) if (sep == -1) |