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

            Bug ID: 58785
           Summary: XSLFSlide.importContent does not keep names of shapes
                    inside an XSLFGroupShape
           Product: POI
           Version: 3.13-FINAL
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: XSLF
          Assignee: [email protected]
          Reporter: [email protected]

XSLFSlide originalSlide = presentation.getSlides.get(0)
XSLFSlide newSlide = presentation.createSlide(originalSlide.getSlideLayout)
newSlide.importContent(originalSlide)
System.out.println(originalSlide.getXmlObject)
System.out.println(newSlide.getXmlObject)

If the slide contains an XSLFGroupShape, this shape is copied with its name.
But all shapes contained in the group will miss their name. 

After following importContent workflow, copy code is here: 
https://svn.apache.org/repos/asf/poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFGroupShape.java

When checking "copy" function, it creates new shapes, but they get a default
name such as "TextBox 83"!

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