summaryrefslogtreecommitdiff
path: root/rows.go
diff options
context:
space:
mode:
Diffstat (limited to 'rows.go')
-rw-r--r--rows.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/rows.go b/rows.go
index e0918bc..bcb8960 100644
--- a/rows.go
+++ b/rows.go
@@ -841,6 +841,11 @@ func (f *File) SetRowStyle(sheet string, start, end, styleID int) error {
for row := start - 1; row < end; row++ {
ws.SheetData.Row[row].S = styleID
ws.SheetData.Row[row].CustomFormat = true
+ for i := range ws.SheetData.Row[row].C {
+ if _, rowNum, err := CellNameToCoordinates(ws.SheetData.Row[row].C[i].R); err == nil && rowNum-1 == row {
+ ws.SheetData.Row[row].C[i].S = styleID
+ }
+ }
}
return nil
}