summaryrefslogtreecommitdiff
path: root/styles.go
diff options
context:
space:
mode:
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
}