zdavatz / spreadsheet

The Ruby Spreadsheet by ywesee GmbH
http://spreadsheet.ch
GNU General Public License v3.0
1.13k stars 240 forks source link

Columns Attr in Worksheet not being Updated anywhere #242

Open AhmedKamal20 opened 5 years ago

AhmedKamal20 commented 5 years ago

https://github.com/zdavatz/spreadsheet/blob/1d746dd225440260756545761d400b21e890a223/lib/spreadsheet/worksheet.rb#L55

I don't see any code that update the columns array, like for example the update for the rows array here: https://github.com/zdavatz/spreadsheet/blob/1d746dd225440260756545761d400b21e890a223/lib/spreadsheet/worksheet.rb#L231

that result that when i call columns on a sheet filled with columns, it return an empty array.

zdavatz commented 5 years ago

Let me know if you find a solution or come up with a patch.