summaryrefslogtreecommitdiff
path: root/styles.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-01-27 22:37:32 +0800
committerxuri <xuri.me@gmail.com>2022-01-27 22:37:32 +0800
commit156bf6d16ecbd5257d81e781138eaaaf357ffbec (patch)
tree1f0e630121f6368e004734f176f6d1549988f176 /styles.go
parent3ee3c38f9c63de3782fad21aae9c05ee0530fc32 (diff)
This closes #1129, make cell support inheritance columns/rows style
Correct cells style in merge range Fix incorrect style ID returned on getting cell style in some cases Unit test updated and simplified code
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 5c887db..5d373d3 100644
--- a/styles.go
+++ b/styles.go
@@ -2613,11 +2613,11 @@ func (f *File) GetCellStyle(sheet, axis string) (int, error) {
if err != nil {
return 0, err
}
- cellData, col, _, err := f.prepareCell(ws, sheet, axis)
+ cellData, col, row, err := f.prepareCell(ws, sheet, axis)
if err != nil {
return 0, err
}
- return f.prepareCellStyle(ws, col, cellData.S), err
+ return f.prepareCellStyle(ws, col, row, cellData.S), err
}
// SetCellStyle provides a function to add style attribute for cells by given