summaryrefslogtreecommitdiff
path: root/stream.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-09-28 00:04:17 +0800
committerxuri <xuri.me@gmail.com>2022-09-28 00:04:17 +0800
commitefcf599dfe2ec25f10c4d55513a5648addfe989b (patch)
tree29da05dfcac18cbe2712ca8821376be4777c032d /stream.go
parentaddcc1a0b257d3b71e33891891c3a3df4d34f0dc (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.go6
1 files changed, 3 insertions, 3 deletions
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
}