From f6f14f507ee1adf4883cb1b12f27932a63afb286 Mon Sep 17 00:00:00 2001 From: three Date: Fri, 13 Aug 2021 01:32:44 +0800 Subject: Speed up merge cells --- rows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rows.go') 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) -- cgit v1.2.1