https://bz.apache.org/bugzilla/show_bug.cgi?id=59180
Bug ID: 59180
Summary: XSSFGraphicFrame hides anchor from XSSFShape
Product: POI
Version: 3.14-FINAL
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: XSSF
Assignee: [email protected]
Reporter: [email protected]
Created attachment 33674
--> https://bz.apache.org/bugzilla/attachment.cgi?id=33674&action=edit
inspection of anchor field
XSSFGraphicFrame incorrectly declares its own anchor field, hiding the anchor
property from XSSFShape. The achor property from XSSFShape has the anchor
value, the one from XSSFGraphicFrame is always null.
Workaround:
I was working with the graphic frame for a chart. I was able to get the anchor
through the chart parent:
final XSSFDrawing parent = (XSSFDrawing) chart.getParent();
final CTTwoCellAnchor twoCellAnchorArray =
parent.getCTDrawing().getTwoCellAnchorArray(0);
final XSSFClientAnchor xssfClientAnchor = new XSSFClientAnchor((int)
twoCellAnchorArray.getFrom().getColOff(),
(int) twoCellAnchorArray.getFrom().getRowOff(), (int)
twoCellAnchorArray.getTo().getColOff(),
(int) twoCellAnchorArray.getTo().getRowOff(),
twoCellAnchorArray.getFrom().getCol(),
twoCellAnchorArray.getFrom().getRow(),
twoCellAnchorArray.getTo().getCol(),
twoCellAnchorArray.getTo().getRow());
--
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]