summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorochko <[email protected]>2012-03-26 20:04:47 +0900
committerochko <[email protected]>2012-03-26 20:04:47 +0900
commit1c2ec07135a46bd042528c5bc6e5e37b563b6c6e (patch)
tree8acba60bac11a5fe9bae5c29d11f30978b07f826
parent6b0107b50e04bd57385860238a035f0752d2dad8 (diff)
downloadcaxlsx-1c2ec07135a46bd042528c5bc6e5e37b563b6c6e.tar.gz
caxlsx-1c2ec07135a46bd042528c5bc6e5e37b563b6c6e.zip
do nothing unless it is told to autowith fitting
-rw-r--r--lib/axlsx/workbook/worksheet/worksheet.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/axlsx/workbook/worksheet/worksheet.rb b/lib/axlsx/workbook/worksheet/worksheet.rb
index 1d128235..b6acad45 100644
--- a/lib/axlsx/workbook/worksheet/worksheet.rb
+++ b/lib/axlsx/workbook/worksheet/worksheet.rb
@@ -493,6 +493,7 @@ module Axlsx
# @param [Array] cells an array of cells
# @param [Array] widths an array of cell widths @see Worksheet#add_row
def update_auto_fit_data(cells, widths=[])
+ return cells unless self.workbook.use_autowidth
# TODO delay this until rendering. too much work when we dont know what they are going to do to the sheet.
styles = self.workbook.styles
cellXfs, fonts = styles.cellXfs, styles.fonts