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 /styles.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 'styles.go')
| -rw-r--r-- | styles.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2042,7 +2042,7 @@ func (f *File) getFontID(styleSheet *xlsxStyleSheet, style *Style) (fontID int) // settings. func (f *File) newFont(style *Style) *xlsxFont { fontUnderlineType := map[string]string{"single": "single", "double": "double"} - if style.Font.Size < 1 { + if style.Font.Size < MinFontSize { style.Font.Size = 11 } if style.Font.Color == "" { |
