diff options
author | xuri <xuri.me@gmail.com> | 2022-09-28 00:04:17 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-09-28 00:04:17 +0800 |
commit | efcf599dfe2ec25f10c4d55513a5648addfe989b (patch) | |
tree | 29da05dfcac18cbe2712ca8821376be4777c032d /stream.go | |
parent | addcc1a0b257d3b71e33891891c3a3df4d34f0dc (diff) |
This closes #1360, closes #1361
- Fix default number format parse issue with a long string of digits
- Fix creating a sheet with an empty name cause a corrupted file
- The `GetCellStyle` function no longer return master cell style of the merge cell range
- Using the specialized name in variables and functions
Diffstat (limited to 'stream.go')
-rw-r--r-- | stream.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -145,7 +145,7 @@ func (sw *StreamWriter) AddTable(hCell, vCell, format string) error { return err } - coordinates, err := areaRangeToCoordinates(hCell, vCell) + coordinates, err := cellRefsToCoordinates(hCell, vCell) if err != nil { return err } @@ -157,7 +157,7 @@ func (sw *StreamWriter) AddTable(hCell, vCell, format string) error { } // Correct table reference range, such correct C1:B3 to B1:C3. - ref, err := sw.File.coordinatesToAreaRef(coordinates) + ref, err := sw.File.coordinatesToRangeRef(coordinates) if err != nil { return err } @@ -412,7 +412,7 @@ func (sw *StreamWriter) SetColWidth(min, max int, width float64) error { // the StreamWriter. Don't create a merged cell that overlaps with another // existing merged cell. func (sw *StreamWriter) MergeCell(hCell, vCell string) error { - _, err := areaRangeToCoordinates(hCell, vCell) + _, err := cellRefsToCoordinates(hCell, vCell) if err != nil { return err } |