Skip to content

Commit

Permalink
fix TableCell.SetBorderColor
Browse files Browse the repository at this point in the history
  • Loading branch information
llonchj committed Feb 12, 2018
1 parent 40f3640 commit c9f1726
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pdf/creator/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,8 @@ func (cell *TableCell) SetBorder(style CellBorderStyle, width float64) {
}

// SetBorderColor sets the cell's border color.
func (cell *TableCell) SetBorderColor(color rgbColor) {
cell.borderColor = model.NewPdfColorDeviceRGB(color.r, color.g, color.b)
func (cell *TableCell) SetBorderColor(col Color) {
cell.borderColor = model.NewPdfColorDeviceRGB(col.ToRGB())
}

// SetBackgroundColor sets the cell's background color.
Expand Down

0 comments on commit c9f1726

Please sign in to comment.