diff options
author | xuri <xuri.me@gmail.com> | 2022-05-02 12:30:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-02 12:30:18 +0800 |
commit | eed431e0fc2f61b13e7745857a41cb47d9f7f810 (patch) | |
tree | 8244e1b4749d177313e51a3d73686d16c0176451 /merge.go | |
parent | 773d4afa32a55349a7b178c4c76d182f9ed0221f (diff) |
This closes #1219, fixes cell value reading issue, improves performance, and 1904 date system support
- Fix incorrect cell data types casting results when number formatting
- Support set cell value on 1904 date system enabled, ref #1212
- Improve performance for set sheet row and the merging cells, fix performance impact when resolving #1129
Diffstat (limited to 'merge.go')
-rw-r--r-- | merge.go | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -11,9 +11,7 @@ package excelize -import ( - "strings" -) +import "strings" // Rect gets merged cell rectangle coordinates sequence. func (mc *xlsxMergeCell) Rect() ([]int, error) { @@ -70,8 +68,7 @@ func (f *File) MergeCell(sheet, hCell, vCell string) error { ws.MergeCells = &xlsxMergeCells{Cells: []*xlsxMergeCell{{Ref: ref, rect: rect}}} } ws.MergeCells.Count = len(ws.MergeCells.Cells) - styleID, _ := f.GetCellStyle(sheet, hCell) - return f.SetCellStyle(sheet, hCell, vCell, styleID) + return err } // UnmergeCell provides a function to unmerge a given coordinate area. |