https://bz.apache.org/bugzilla/show_bug.cgi?id=61119
Bug ID: 61119
Summary: Fix preset shape rendering
Product: POI
Version: 3.17-dev
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: SL Common
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 35006
--> https://bz.apache.org/bugzilla/attachment.cgi?id=35006&action=edit
Test file for preset definitions
The rendering of the preset shapes has actually quite some errors.
The main problem is connected with the way arcs are displayed in AWT [1], i.e.
> angles are specified relative to the non-square framing rectangle
> such that 45 degrees always falls on the line from the center of
> the ellipse to the upper right corner of the framing rectangle
Additional the old code used Math.atan() where it should use Math.atan2(),
which also covers the cases on the other side of the axis.
And ArcTanExpression actually should return a OOXML angle.
[1] https://docs.oracle.com/javase/6/docs/api/java/awt/geom/Arc2D.html
--
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]