Fix row duplicate mechanism (#729)

This commit is contained in:
Eugene Androsov 2020-11-15 04:58:45 +02:00 committed by GitHub
parent 2514bb16c6
commit 2be4bfd410
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -20,6 +20,8 @@ import (
"log"
"math"
"strconv"
"github.com/mohae/deepcopy"
)
// GetRows return all the rows in a sheet by given worksheet name (case
@ -538,7 +540,7 @@ func (f *File) DuplicateRowTo(sheet string, row, row2 int) error {
for i, r := range ws.SheetData.Row {
if r.R == row {
rowCopy = ws.SheetData.Row[i]
rowCopy = deepcopy.Copy(ws.SheetData.Row[i]).(xlsxRow)
ok = true
break
}