lib/axlsx/workbook/worksheet/cell.rb in axlsx-1.2.0 vs lib/axlsx/workbook/worksheet/cell.rb in axlsx-1.2.1
- old
+ new
@@ -341,10 +341,10 @@
end
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
def set_run_style( validator, attr, value)
return unless INLINE_STYLES.include?(attr.to_s)