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: [email protected]
ReportedBy: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]