diff options
| author | ochko <[email protected]> | 2012-03-26 20:04:47 +0900 |
|---|---|---|
| committer | ochko <[email protected]> | 2012-03-26 20:04:47 +0900 |
| commit | 1c2ec07135a46bd042528c5bc6e5e37b563b6c6e (patch) | |
| tree | 8acba60bac11a5fe9bae5c29d11f30978b07f826 | |
| parent | 6b0107b50e04bd57385860238a035f0752d2dad8 (diff) | |
| download | caxlsx-1c2ec07135a46bd042528c5bc6e5e37b563b6c6e.tar.gz caxlsx-1c2ec07135a46bd042528c5bc6e5e37b563b6c6e.zip | |
do nothing unless it is told to autowith fitting
| -rw-r--r-- | lib/axlsx/workbook/worksheet/worksheet.rb | 1 |
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 |
