poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 61459] New: HSLFShape.getShapeName() returns name of shapeType and not the shape name
Date Sat, 26 Aug 2017 21:06:28 GMT
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: dev@poi.apache.org
          Reporter: kiwiwings@apache.org
  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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message