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

            Bug ID: 61459
           Summary: HSLFShape.getShapeName() returns name of shapeType and
                    not the shape name
           Product: POI
           Version: 3.17-dev
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSLF
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

The summary says it all ...

The shape name needs to be retrieved by:

EscherComplexProperty ep =
HSLFShape.getEscherProperty(shape.getEscherOptRecord(),
EscherProperties.GROUPSHAPE__SHAPENAME);
String name;
if (ep != null) {
   name = StringUtil.getFromUnicodeLE(ep.getComplexData());
} else {
   name = shape.getShapeName()+shape.getShapeId();
}

See also https://stackoverflow.com/questions/45855232
I'll apply the changes when POI 3.17 is out.

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