Permalink
Browse files

Fixes the bgColor handling.

  • Loading branch information...
1 parent b97e30d commit f8fba202f3943610ae679cdef8e223dc556be24b @janhuehne janhuehne committed Jun 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/axlsx/stylesheet/styles.rb
View
2 lib/axlsx/stylesheet/styles.rb
@@ -291,7 +291,7 @@ def parse_font_options(options={})
def parse_fill_options(options={})
return unless options[:bg_color]
color = Color.new(:rgb=>options[:bg_color])
- pattern = PatternFill.new(:patternType =>:solid, :fgColor=>color)
+ pattern = PatternFill.new(:patternType =>:solid, :fgColor=>color, :bgColor=>color)
fill = Fill.new(pattern)
options[:type] == :dxf ? fill : fills << fill
end

0 comments on commit f8fba20

Please sign in to comment.