summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJonathan Tron <[email protected]>2012-02-20 15:32:16 +0100
committerJonathan Tron <[email protected]>2012-02-20 15:32:16 +0100
commitda3bfdb914b294416032e73181eb4d2fac4ae142 (patch)
tree63b00ed8f5ca4f15700d0bfe229184d7acbd636c
parent66abe97ad9988928bb02d8b19f3d316c786e6908 (diff)
downloadcaxlsx-da3bfdb914b294416032e73181eb4d2fac4ae142.tar.gz
caxlsx-da3bfdb914b294416032e73181eb4d2fac4ae142.zip
Ensure border is applied if border specified in `Styles#add_style`
-rw-r--r--lib/axlsx/stylesheet/styles.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/axlsx/stylesheet/styles.rb b/lib/axlsx/stylesheet/styles.rb
index 421215c1..4550c83a 100644
--- a/lib/axlsx/stylesheet/styles.rb
+++ b/lib/axlsx/stylesheet/styles.rb
@@ -223,6 +223,7 @@ module Axlsx
xf = Xf.new(:fillId => fill, :fontId=>fontId, :applyFill=>1, :applyFont=>1, :numFmtId=>numFmtId, :borderId=>borderId, :applyProtection=>applyProtection)
+ xf.applyBorder = true if borderId > 0
xf.applyNumberFormat = true if xf.numFmtId > 0
if options[:alignment]