summaryrefslogtreecommitdiff
path: root/rows.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-05-01 12:28:36 +0800
committerGitHub <noreply@github.com>2022-05-01 12:28:36 +0800
commit773d4afa32a55349a7b178c4c76d182f9ed0221f (patch)
treed176338fc1c550dab8201180f822dbf6dfad074d /rows.go
parent856ee57c4019b4478da0f6cb3010ae636914a6be (diff)
This closes #1217, support update cell hyperlink
Ref #1129, make `SetRowStyle` overwrite style of the cells
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
}