https://issues.apache.org/bugzilla/show_bug.cgi?id=47031

           Summary: [PATCH] PdfGraphics2D incorrectly writes clipping
                    instructions
           Product: Fop
           Version: 0.95
          Platform: PC
        OS/Version: Windows Vista
            Status: NEW
          Severity: normal
          Priority: P2
         Component: pdf
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Created an attachment (id=23493)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23493)
patch for PDFGraphics2D.writeClip(Shape)

The current implementation of writeClip(Shape) of PDFGraphics2D checks whether
the given clipping shape is empty. But if the shape has no points (i.e.
shape.getPathIterator(...).isDone() returns true) there will only the
instructions W n written to the pdf page content stream.
The attached patch will fix this by checking if the PathIterator has at least
one segment. If not, it will return without doing anything.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to