You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2017/08/26 21:06:28 UTC

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

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


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

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61459

Andreas Beeker <ki...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #1 from Andreas Beeker <ki...@apache.org> ---
Applied via r1829656

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