From 6f1f408f756cfcb4705232a19edccd0c7585dc63 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Fri, 21 Dec 2012 00:04:37 +0900 Subject: Applied patches for 1.8.7 --- lib/axlsx/workbook/worksheet/cell.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/axlsx/workbook/worksheet/cell.rb b/lib/axlsx/workbook/worksheet/cell.rb index c68f7e47..91808886 100644 --- a/lib/axlsx/workbook/worksheet/cell.rb +++ b/lib/axlsx/workbook/worksheet/cell.rb @@ -326,7 +326,8 @@ module Axlsx def to_xml_string(r_index, c_index, str = '') str << '' if @value.nil? - self.send (@type.to_s << '_type_serialization').to_sym, str + method = (@type.to_s << '_type_serialization').to_sym + self.send( method, str) str << '' end @@ -407,7 +408,7 @@ module Axlsx # Cast the value into this cells data type. # @note - # About Time - Time in OOXML is *different* from what you might expect. The history as to why is interesting, but you can safely assume that if you are generating docs on a mac, you will want to specify Workbook.1904 as true when using time typed values. + # About Time - Time in OOXML is *different* from what you might expect. The history as to why is interesting, but you can safely assume that if you are generating docs on a mac, you will want to specify Workbook.1904 as true when using time typed values. # @see Axlsx#date1904 def cast_value(v) return nil if v.nil? -- cgit v1.2.3