fix TableCell.SetBorderColor

This commit is contained in:
Jordi Llonch 2018-02-12 14:18:37 +11:00
parent 40f364059f
commit c9f172694c

View File

@ -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.