summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-08-12 22:53:13 +0900
committerRandy Morgan <[email protected]>2012-08-12 22:53:13 +0900
commit62ff31c460b22c27213f9555065ff4ce76cc8a63 (patch)
tree58d78962c48b662fb28df4859c3f64ab5318b906 /lib
parent32eb809ac8e3b401e2cc2567d99779536a21eb22 (diff)
downloadcaxlsx-62ff31c460b22c27213f9555065ff4ce76cc8a63.tar.gz
caxlsx-62ff31c460b22c27213f9555065ff4ce76cc8a63.zip
fix error in font_size calculation when using user specified styles that do not define sz and update read_example.rb
Diffstat (limited to 'lib')
-rw-r--r--lib/axlsx/workbook/worksheet/cell.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/workbook/worksheet/cell.rb b/lib/axlsx/workbook/worksheet/cell.rb
index ea6746cd..7e0d7916 100644
--- a/lib/axlsx/workbook/worksheet/cell.rb
+++ b/lib/axlsx/workbook/worksheet/cell.rb
@@ -343,7 +343,7 @@ module Axlsx
private
def font_size
- sz || @styles.fonts[@styles.cellXfs[style].fontId].sz
+ sz || @styles.fonts[@styles.cellXfs[style].fontId].sz || @styles.fonts[0].sz
end
# Utility method for setting inline style attributes