Skip to content
This repository has been archived by the owner on Nov 13, 2021. It is now read-only.

Border is coverd by fill-color #239

Open
klixpert opened this issue Apr 8, 2019 · 2 comments
Open

Border is coverd by fill-color #239

klixpert opened this issue Apr 8, 2019 · 2 comments
Labels

Comments

@klixpert
Copy link

klixpert commented Apr 8, 2019

If you use CellFormat with the borderStr "LB" or anything else the border gets coverd by the fill color. If you use the borderStr "1" everythin is fine.

gofpdf/fpdf.go

Line 1991 in 24315ac

if borderStr == "1" {

@jung-kurt
Copy link
Owner

It looks like the fill/border code in this range is improperly factored. The partial border code uses a fill code of 'S', that is, it assumes there will be no fill. The solution may be as easy as a conditional statement right beneath

if len(borderStr) > 0 && borderStr != "1" {

that sets the op code to 's' or 'S' and then uses that op code instead of the hard-code 'S' in the subsequent s.printf lines. If you don't care to tackle this I will try to get to it in the next few days.

@jung-kurt jung-kurt added the bug label Apr 8, 2019
@klixpert
Copy link
Author

klixpert commented Apr 8, 2019 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants