https://bz.apache.org/bugzilla/show_bug.cgi?id=59180

Tony BenBrahim <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Tony BenBrahim <[email protected]> ---
Workaround above did not work in one case of three (wrong parent returned by
chart.getParent().

I ended up using this (ugly but works)

if (shape instanceof XSSFGraphicFrame) {
    try {
    final Field anchorField = XSSFShape.class.getDeclaredField("anchor");
    anchorField.setAccessible(true);
    final XSSFClientAnchor anchor = (XSSFClientAnchor) anchorField.get(shape);
        renderGraphicsFrame...
    } catch (NoSuchFieldException | SecurityException | IllegalAccessException
|
 IllegalArgumentException e) {
    LOG.info("unable to extract anchor for chart", e);
   }

-- 
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]

Reply via email to