mirror of
https://github.com/unidoc/unipdf.git
synced 2025-05-09 19:29:34 +08:00
fix TableCell.SetBorderColor
This commit is contained in:
parent
40f364059f
commit
c9f172694c
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user