diff options
| author | Randy Morgan <[email protected]> | 2011-12-16 18:25:43 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2011-12-16 18:25:43 +0900 |
| commit | fd4cabdf511f016d9d2a6f0691f0752ae7ce8859 (patch) | |
| tree | f7275477d968566f99c022329ba7263a1f6e2b7a /lib/axlsx/stylesheet | |
| parent | 460e264aa954a141c622fcec2d4533a5b0f68ef3 (diff) | |
| download | caxlsx-fd4cabdf511f016d9d2a6f0691f0752ae7ce8859.tar.gz caxlsx-fd4cabdf511f016d9d2a6f0691f0752ae7ce8859.zip | |
number format needs to be applied if a format is specified.
Diffstat (limited to 'lib/axlsx/stylesheet')
| -rw-r--r-- | lib/axlsx/stylesheet/styles.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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]) |
