summaryrefslogtreecommitdiff
path: root/styles.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-05-15 15:38:40 +0800
committerxuri <xuri.me@gmail.com>2022-05-15 15:38:40 +0800
commit19a0cf3cec71fc49851d29fb420674b027f50d93 (patch)
tree4603ca353c4fa71be49edc6b4c99ebec4fd8d6eb /styles.go
parentc2311ce87dd2c681406728f885d2228dbefd7a21 (diff)
This closed #1163, fix set cell value with column and row style inherit issue
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 6ef7dcb..b7b1525 100644
--- a/styles.go
+++ b/styles.go
@@ -901,7 +901,7 @@ func formatToC(v, format string, date1904 bool) string {
if err != nil {
return v
}
- f = f * 100
+ f *= 100
return fmt.Sprintf("%.f%%", f)
}
@@ -912,7 +912,7 @@ func formatToD(v, format string, date1904 bool) string {
if err != nil {
return v
}
- f = f * 100
+ f *= 100
return fmt.Sprintf("%.2f%%", f)
}