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 2014/04/28 16:15:52 UTC

[Bug 56467] New: cloneSheet() does not properly copy pictures

https://issues.apache.org/bugzilla/show_bug.cgi?id=56467

            Bug ID: 56467
           Summary: cloneSheet() does not properly copy pictures
           Product: POI
           Version: 3.10
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
          Assignee: dev@poi.apache.org
          Reporter: guarale@hotmail.com

After cloning an XSSFSheet with XSSFWorkbook.cloneSheet() method, pictures are
not properly copied in the cloned sheet.

e.g. the following 

Drawing drawing = sheet.createDrawingPatriarch();
for (XSSFShape shape : ((XSSFDrawing) drawing).getShapes()) {
    if (shape instanceof XSSFPicture) {
        XSSFPictureData pictureData = ((XSSFPicture) shape).getPictureData();
        // ...
    }
}    

pictureData is null after assignment.

-- 
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 56467] cloneSheet() does not properly copy pictures

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

--- Comment #2 from Alessandro Guarascio <gu...@hotmail.com> ---
Created attachment 31574
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31574&action=edit
Patch for XSSFWorkbook.java

Sorry, ignore the previous attachment which did not create a consistent XSLX
file once saved.

-- 
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 56467] cloneSheet() does not properly copy pictures

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

Alessandro Guarascio <gu...@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |APIBug
                 OS|                            |All

-- 
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 56467] cloneSheet() does not properly copy pictures

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

--- Comment #1 from Alessandro Guarascio <gu...@hotmail.com> ---
Created attachment 31570
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31570&action=edit
Here is a proposed patch for XSSFWorkbook.java

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