summaryrefslogtreecommitdiff
path: root/styles.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-05-23 13:02:11 +0800
committerGitHub <noreply@github.com>2022-05-23 13:02:11 +0800
commitafb2d27c90130878b82a70b44ccb4e30344cc09e (patch)
treebcab578db24cf82c974fe0d92ac82dfd37f37ffe /styles.go
parent63adac25897f295ef4493e060d917650f03ebd3b (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.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/styles.go b/styles.go
index 4b5c772..f8f4030 100644
--- a/styles.go
+++ b/styles.go
@@ -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 == "" {