lib/surpass/worksheet.rb in surpass-0.0.7 vs lib/surpass/worksheet.rb in surpass-0.0.9
- old
+ new
@@ -150,11 +150,11 @@
@calc_count = 0x0064
@rc_ref_mode = 1
@iterations_on = 0
@delta = 0.001
@save_recalc = 0
- @formula_options = ExcelFormula::RECALC_ALWAYS | ExcelFormula::CALC_ON_OPEN
+ @formula_options = Formula::RECALC_ALWAYS | Formula::CALC_ON_OPEN
@print_headers = 0
@print_grid = 0
@grid_set = 1
@vert_page_breaks = []
@@ -551,12 +551,12 @@
else
17
end
end
- def col_width(col)
- if cols.keys.include?(col)
- col.width_in_pixels
+ def col_width(column_index)
+ if cols.keys.include?(column_index)
+ cols[column_index].width_in_pixels
else
64
end
end