cfsimplicity / spreadsheet-cfml

Standalone library for working with spreadsheets and CSV in CFML
MIT License
126 stars 35 forks source link

formatRows() errors if range specified is a single row #280

Closed arjanmuthert closed 2 years ago

arjanmuthert commented 2 years ago

The formatRows function calls the function formatRow (row 971) with the variable "style". This gives an error "variable [style] doesn't exist" I think "style" should be "arguments.cellStyle"

Version: main / develop v3.2.3

cfsimplicity commented 2 years ago

Yes, that error is thrown if there's only 1 row in the range. That if condition isn't actually unnecessary.

Thanks for reporting. Fix coming up.