From da3bfdb914b294416032e73181eb4d2fac4ae142 Mon Sep 17 00:00:00 2001 From: Jonathan Tron Date: Mon, 20 Feb 2012 15:32:16 +0100 Subject: Ensure border is applied if border specified in `Styles#add_style` --- lib/axlsx/stylesheet/styles.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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] -- cgit v1.2.3