Skip to content

Commit

Permalink
Initialize cell property
Browse files Browse the repository at this point in the history
  • Loading branch information
Leoliu83 committed Jan 21, 2025
1 parent c30f9a8 commit 5f8ecaf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion wml/ctypes/cell.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ type Cell struct {
}

func DefaultCell() *Cell {
return &Cell{}
return &Cell{
Property: &CellProperty{
Shading: DefaultShading(),
},
}
}

func (c Cell) MarshalXML(e *xml.Encoder, start xml.StartElement) (err error) {
Expand Down

0 comments on commit 5f8ecaf

Please sign in to comment.