summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Androsov <53434131+EugeneAndrosovPaser@users.noreply.github.com>2020-11-15 04:58:45 +0200
committerGitHub <noreply@github.com>2020-11-15 10:58:45 +0800
commit2be4bfd410744201f96e79804ef644d26c47f49f (patch)
tree5abbcb22af7197dedabad087ea442b81f6c77f99
parent2514bb16c682679485dfb5298e1a5797b97bdcd7 (diff)
Fix row duplicate mechanism (#729)
-rw-r--r--rows.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/rows.go b/rows.go
index 3bbf4f2..04a06b9 100644
--- a/rows.go
+++ b/rows.go
@@ -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
}