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 /datavalidation.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 'datavalidation.go')
-rw-r--r-- | datavalidation.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/datavalidation.go b/datavalidation.go index 3d82f7c..5ae5f65 100644 --- a/datavalidation.go +++ b/datavalidation.go @@ -333,7 +333,7 @@ func (f *File) squashSqref(cells [][]int) []string { l, r := 0, 0 for i := 1; i < len(cells); i++ { if cells[i][0] == cells[r][0] && cells[i][1]-cells[r][1] > 1 { - curr, _ := f.coordinatesToAreaRef(append(cells[l], cells[r]...)) + curr, _ := f.coordinatesToRangeRef(append(cells[l], cells[r]...)) if l == r { curr, _ = CoordinatesToCellName(cells[l][0], cells[l][1]) } @@ -343,7 +343,7 @@ func (f *File) squashSqref(cells [][]int) []string { r++ } } - curr, _ := f.coordinatesToAreaRef(append(cells[l], cells[r]...)) + curr, _ := f.coordinatesToRangeRef(append(cells[l], cells[r]...)) if l == r { curr, _ = CoordinatesToCellName(cells[l][0], cells[l][1]) } |