mirror of
https://github.com/unidoc/unipdf.git
synced 2025-04-30 13:48:51 +08:00
Fix minor rect rendering issue
This commit is contained in:
parent
057c437d1e
commit
ef6e7bc8ff
@ -142,6 +142,7 @@ func (rect Rectangle) Draw(gsName string) ([]byte, *pdf.PdfRectangle, error) {
|
||||
creator.Add_gs(pdfcore.PdfObjectName(gsName))
|
||||
}
|
||||
DrawPathWithCreator(path, creator)
|
||||
creator.Add_h() // Close the path.
|
||||
|
||||
if rect.FillEnabled && rect.BorderEnabled {
|
||||
creator.Add_B() // fill and stroke.
|
||||
|
Loading…
x
Reference in New Issue
Block a user