diff options
author | xuri <xuri.me@gmail.com> | 2022-05-23 13:02:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-23 13:02:11 +0800 |
commit | afb2d27c90130878b82a70b44ccb4e30344cc09e (patch) | |
tree | bcab578db24cf82c974fe0d92ac82dfd37f37ffe /sheet.go | |
parent | 63adac25897f295ef4493e060d917650f03ebd3b (diff) |
This fix formula calculation accuracy issue and panic when set pane
- Fix `GROWTH` and `TREND` calculation accuracy issue
- Fix panic when add pane on empty sheet views worksheet
- New exported constants `MinFontSize`
Diffstat (limited to 'sheet.go')
-rw-r--r-- | sheet.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -773,6 +773,9 @@ func (f *File) SetPanes(sheet, panes string) error { if fs.Freeze { p.State = "frozen" } + if ws.SheetViews == nil { + ws.SheetViews = &xlsxSheetViews{SheetView: []xlsxSheetView{{}}} + } ws.SheetViews.SheetView[len(ws.SheetViews.SheetView)-1].Pane = p if !(fs.Freeze) && !(fs.Split) { if len(ws.SheetViews.SheetView) > 0 { |