summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/stylesheet
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-02-20 15:13:27 -0800
committerRandy Morgan <[email protected]>2012-02-20 15:13:27 -0800
commit4e06bb2b6c824ccd6cff287666027619339ad21e (patch)
tree84f370e0eb986964fc1ee2c5ce70b3fe1e003325 /lib/axlsx/stylesheet
parent04ed5711fe43265e8c758a22289f9b960d869c7c (diff)
parentda3bfdb914b294416032e73181eb4d2fac4ae142 (diff)
downloadcaxlsx-4e06bb2b6c824ccd6cff287666027619339ad21e.tar.gz
caxlsx-4e06bb2b6c824ccd6cff287666027619339ad21e.zip
Merge pull request #31 from JonathanTron/patch-2
Ensure border is applied if border specified in `Styles#add_style`
Diffstat (limited to 'lib/axlsx/stylesheet')
-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 015bddf2..e8bcdbfb 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]