xmlgraphics-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49339] New: [PATCH] Incorrect AffineTransform in PSGenerator state due to AbstractPSDocumentGraphics2D.startPage method
Date Tue, 25 May 2010 13:37:04 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49339

           Summary: [PATCH] Incorrect AffineTransform in PSGenerator state
                    due to AbstractPSDocumentGraphics2D.startPage method
           Product: XMLGraphicsCommons
           Version: Trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: PostScript
        AssignedTo: general@xmlgraphics.apache.org
        ReportedBy: julien.ayme@gmail.com


Created an attachment (id=25483)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25483)
The test case

Hi all,

I extended PSDocumentGraphics2D to generate a more optimized PS code, and I
noticed that the PSGenerator always wrote the same transformation matrix again
and again.

After some search, I found that the startPage method in
AbstractPSDocumentGraphics2D uses the concatMatrix method of PSGenerator, which
alters the PSGenerator current state to save the given AffineTransform.

I've attached a simple TestCase which shows the problem (fails with current
trunk code), and I will attach a simple patch:
Use gen.writeln(gen.formatMatrix(at) + "concat") instead of
gen.concatMatrix(at);

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

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: general-help@xmlgraphics.apache.org


Mime
View raw message