[Bug 61459] New: HSLFShape.getShapeName() returns name of shapeType and not the shape name

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug 61459] New: HSLFShape.getShapeName() returns name of shapeType and not the shape name

Bugzilla from bugzilla@apache.org
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: [hidden email]
          Reporter: [hidden email]
  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: [hidden email]
For additional commands, e-mail: [hidden email]