diff options
| author | Randy Morgan <[email protected]> | 2012-04-24 09:37:16 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-04-24 09:37:16 +0900 |
| commit | 4ef79992dd7faa2c0687c89f725ab0d85fced862 (patch) | |
| tree | e05eea160aea921d0b18ce764561e55294ad12f3 /lib/axlsx/stylesheet | |
| parent | 80e61961ce4115f74a30a5b19847993b2a1dbc0e (diff) | |
| download | caxlsx-4ef79992dd7faa2c0687c89f725ab0d85fced862.tar.gz caxlsx-4ef79992dd7faa2c0687c89f725ab0d85fced862.zip | |
1.8.7 patches
Diffstat (limited to 'lib/axlsx/stylesheet')
| -rw-r--r-- | lib/axlsx/stylesheet/font.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/axlsx/stylesheet/font.rb b/lib/axlsx/stylesheet/font.rb index 657c4c30..d35aebf8 100644 --- a/lib/axlsx/stylesheet/font.rb +++ b/lib/axlsx/stylesheet/font.rb @@ -103,7 +103,8 @@ module Axlsx # @option options [Integer] sz def initialize(options={}) options.each do |o| - self.send("#{o[0]}=", o[1]) if self.respond_to? o[0] + next if o[1].nil? + self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}=" end end # @see name |
