https://bz.apache.org/bugzilla/show_bug.cgi?id=60047
Bug ID: 60047
Summary: XSSFDrawing.getShapes() changes Anchor type.
Product: POI
Version: 3.12-FINAL
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: XSSF
Assignee: [email protected]
Reporter: [email protected]
XSSFDrawing.getShapes() changes Anchor type.
The method calls getAnchorFromParent() method which suppose to return an anchor
of the picture. Instead getAnchorFromParentcreates a new anchor
anchor = new XSSFClientAnchor(ct.getFrom(), ct.getTo()).
The anchor type is not set in XSSFClientAnchor constructor, that's why it is
set to default (which is zero for int properties).
As a result every time you call getShapes() method you set the anchorType of
every picture/graph to 0 which is "move and size with Cells", so
getAnchorType() will always return 0.
--
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]