summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-02-16 18:27:44 +0900
committerRandy Morgan <[email protected]>2012-02-16 18:27:44 +0900
commit10a46e9956bb1a09bb3144845af9b35bb47726dc (patch)
treeef494a8bd2ca9a3e1b674840fd46dbb6d3ef48dc /lib
parentfb198aaef459ebad45f8deed84efbb3e92c340ce (diff)
downloadcaxlsx-10a46e9956bb1a09bb3144845af9b35bb47726dc.tar.gz
caxlsx-10a46e9956bb1a09bb3144845af9b35bb47726dc.zip
specifying a fixed with should not require exiting the each loop when setting auto_fit_data
Diffstat (limited to 'lib')
-rw-r--r--lib/axlsx/workbook/worksheet/worksheet.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/workbook/worksheet/worksheet.rb b/lib/axlsx/workbook/worksheet/worksheet.rb
index f84e9b92..eb6f55e9 100644
--- a/lib/axlsx/workbook/worksheet/worksheet.rb
+++ b/lib/axlsx/workbook/worksheet/worksheet.rb
@@ -352,7 +352,7 @@ module Axlsx
col = @auto_fit_data[index] ||= {:longest=>"", :sz=>sz, :fixed=>nil}
width = widths[index]
# set fixed width and skip if numeric width is given
- col[:fixed] = width and next if [Integer, Float, Fixnum].include?(width.class)
+ col[:fixed] = width if [Integer, Float, Fixnum].include?(width.class)
# ignore default column widths and formula
next if width == :ignore || (item.value.is_a?(String) && item.value.start_with?('='))