From: Toshi MARUYAMA Date: Sun, 3 Mar 2013 12:10:48 +0000 (+0000) Subject: Merged r11527 from trunk to 2.3-stable (#13338, #13329) X-Git-Tag: 2.3.0~49 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4100d3beeba993641ada90f4771ee8896ca6fbdd;p=redmine.git Merged r11527 from trunk to 2.3-stable (#13338, #13329) Ruby2.0: remove "warning: class variable access from toplevel" in lib/plugins/rfpdf/lib/tcpdf.rb. Contributed by Jun NAITOH. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/2.3-stable@11533 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/plugins/rfpdf/lib/tcpdf.rb b/lib/plugins/rfpdf/lib/tcpdf.rb index fac984cd0..22e1d2c25 100755 --- a/lib/plugins/rfpdf/lib/tcpdf.rb +++ b/lib/plugins/rfpdf/lib/tcpdf.rb @@ -39,9 +39,6 @@ require 'core/rmagick' # @package com.tecnick.tcpdf # -@@version = "1.53.0.TC031" -@@fpdf_charwidths = {} - PDF_PRODUCER = 'TCPDF via RFPDF 1.53.0.TC031 (http://tcpdf.sourceforge.net)' module TCPDFFontDescriptor @@ -79,6 +76,9 @@ class TCPDF Rails.logger end + @@version = "1.53.0.TC031" + @@fpdf_charwidths = {} + cattr_accessor :k_cell_height_ratio @@k_cell_height_ratio = 1.25