Fix minor rect rendering issue

This commit is contained in:
Gunnsteinn Hall 2017-06-02 12:03:51 +00:00
parent 057c437d1e
commit ef6e7bc8ff

View File

@ -142,6 +142,7 @@ func (rect Rectangle) Draw(gsName string) ([]byte, *pdf.PdfRectangle, error) {
creator.Add_gs(pdfcore.PdfObjectName(gsName)) creator.Add_gs(pdfcore.PdfObjectName(gsName))
} }
DrawPathWithCreator(path, creator) DrawPathWithCreator(path, creator)
creator.Add_h() // Close the path.
if rect.FillEnabled && rect.BorderEnabled { if rect.FillEnabled && rect.BorderEnabled {
creator.Add_B() // fill and stroke. creator.Add_B() // fill and stroke.