summaryrefslogtreecommitdiff
path: root/styles.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2021-03-25 00:05:02 +0800
committerxuri <xuri.me@gmail.com>2021-03-25 00:05:02 +0800
commite1abdb0e5a0ecae47dd0116c9165f4ad6e492856 (patch)
treea0b92dc57ee720d2edde47db6e877ee5f64a4901 /styles.go
parentab2c1c8fe1ef787c1f692bcf26c7bbe0cca2c5b3 (diff)
This closes #809, and add new fn: HARMEAN
Diffstat (limited to 'styles.go')
-rw-r--r--styles.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/styles.go b/styles.go
index 06215f3..9e37239 100644
--- a/styles.go
+++ b/styles.go
@@ -2472,8 +2472,8 @@ func newAlignment(style *Style) *xlsxAlignment {
func newProtection(style *Style) *xlsxProtection {
var protection xlsxProtection
if style.Protection != nil {
- protection.Hidden = style.Protection.Hidden
- protection.Locked = style.Protection.Locked
+ protection.Hidden = &style.Protection.Hidden
+ protection.Locked = &style.Protection.Locked
}
return &protection
}