From efcf599dfe2ec25f10c4d55513a5648addfe989b Mon Sep 17 00:00:00 2001 From: xuri Date: Wed, 28 Sep 2022 00:04:17 +0800 Subject: 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 --- stream.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'stream.go') diff --git a/stream.go b/stream.go index 84299cb..019731f 100644 --- a/stream.go +++ b/stream.go @@ -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 } -- cgit v1.2.1