summaryrefslogtreecommitdiff
path: root/rows.go
diff options
context:
space:
mode:
authorthree <three3q@qq.com>2021-08-13 01:32:44 +0800
committerGitHub <noreply@github.com>2021-08-13 01:32:44 +0800
commitf6f14f507ee1adf4883cb1b12f27932a63afb286 (patch)
tree36128e53dc1b54f555bdd944829b1a4eb270f053 /rows.go
parent61d0ed1ff26fbe47b4bfdc6adbc6db09743beb3a (diff)
Speed up merge cells
Diffstat (limited to 'rows.go')
-rw-r--r--rows.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/rows.go b/rows.go
index fcd3c1a..5fa2cb4 100644
--- a/rows.go
+++ b/rows.go
@@ -614,7 +614,7 @@ func (f *File) duplicateMergeCells(sheet string, ws *xlsxWorksheet, row, row2 in
row++
}
for _, rng := range ws.MergeCells.Cells {
- coordinates, err := f.areaRefToCoordinates(rng.Ref)
+ coordinates, err := areaRefToCoordinates(rng.Ref)
if err != nil {
return err
}
@@ -624,7 +624,7 @@ func (f *File) duplicateMergeCells(sheet string, ws *xlsxWorksheet, row, row2 in
}
for i := 0; i < len(ws.MergeCells.Cells); i++ {
areaData := ws.MergeCells.Cells[i]
- coordinates, _ := f.areaRefToCoordinates(areaData.Ref)
+ coordinates, _ := areaRefToCoordinates(areaData.Ref)
x1, y1, x2, y2 := coordinates[0], coordinates[1], coordinates[2], coordinates[3]
if y1 == y2 && y1 == row {
from, _ := CoordinatesToCellName(x1, row2)