diff options
author | three <three3q@qq.com> | 2021-08-13 01:32:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-13 01:32:44 +0800 |
commit | f6f14f507ee1adf4883cb1b12f27932a63afb286 (patch) | |
tree | 36128e53dc1b54f555bdd944829b1a4eb270f053 /col.go | |
parent | 61d0ed1ff26fbe47b4bfdc6adbc6db09743beb3a (diff) |
Speed up merge cells
Diffstat (limited to 'col.go')
-rw-r--r-- | col.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -616,10 +616,10 @@ func (f *File) positionObjectPixels(sheet string, col, row, x1, y1, width, heigh // getColWidth provides a function to get column width in pixels by given // sheet name and column number. func (f *File) getColWidth(sheet string, col int) int { - xlsx, _ := f.workSheetReader(sheet) - if xlsx.Cols != nil { + ws, _ := f.workSheetReader(sheet) + if ws.Cols != nil { var width float64 - for _, v := range xlsx.Cols.Col { + for _, v := range ws.Cols.Col { if v.Min <= col && col <= v.Max { width = v.Width } |