From fd4cabdf511f016d9d2a6f0691f0752ae7ce8859 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Fri, 16 Dec 2011 18:25:43 +0900 Subject: number format needs to be applied if a format is specified. --- lib/axlsx/stylesheet/styles.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/axlsx/stylesheet/styles.rb b/lib/axlsx/stylesheet/styles.rb index 9db0a805..cb858884 100644 --- a/lib/axlsx/stylesheet/styles.rb +++ b/lib/axlsx/stylesheet/styles.rb @@ -222,6 +222,8 @@ module Axlsx applyProtection = (options[:hidden] || options[:locked]) ? 1 : 0 xf = Xf.new(:fillId => fill, :fontId=>fontId, :applyFill=>1, :applyFont=>1, :numFmtId=>numFmtId, :borderId=>borderId, :applyProtection=>applyProtection) + + xf.applyNumberFormat = true if xf.numFmtId > 0 if options[:alignment] xf.alignment = CellAlignment.new(options[:alignment]) -- cgit v1.2.3 From 0143835085fae316d9b0177d0353149cb3f84386 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Fri, 16 Dec 2011 18:35:00 +0900 Subject: bump for next release --- lib/axlsx/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/axlsx/version.rb b/lib/axlsx/version.rb index 7d217c22..541c7e85 100644 --- a/lib/axlsx/version.rb +++ b/lib/axlsx/version.rb @@ -3,5 +3,5 @@ module Axlsx # When using bunle exec rake and referencing the gem on github or locally # it will use the gemspec, which preloads this constant for the gem's version. # We check to make sure that it has not already been loaded - VERSION="1.0.14" unless Axlsx.const_defined? :VERSION + VERSION="1.0.15" unless Axlsx.const_defined? :VERSION end -- cgit v1.2.3