ASF Bugzilla – Attachment 31574 Details for
Bug 56467
[PATCH] cloneSheet() does not properly copy pictures
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for XSSFWorkbook.java
patch.txt (text/plain), 1.22 KB, created by
Alessandro Guarascio
on 2014-04-29 15:34:01 UTC
(
hide
)
Description:
Patch for XSSFWorkbook.java
Filename:
MIME Type:
Creator:
Alessandro Guarascio
Created:
2014-04-29 15:34:01 UTC
Size:
1.22 KB
patch
obsolete
>Index: src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java >=================================================================== >--- src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java (revisione 1591001) >+++ src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java (copia locale) >@@ -487,13 +487,17 @@ > // copy drawing contents > clonedDg.getCTDrawing().set(dg.getCTDrawing()); > >+ clonedDg = clonedSheet.createDrawingPatriarch(); >+ > // Clone drawing relations > List<POIXMLDocumentPart> srcRels = srcSheet.createDrawingPatriarch().getRelations(); > for (POIXMLDocumentPart rel : srcRels) { > PackageRelationship relation = rel.getPackageRelationship(); >- clonedSheet >- .createDrawingPatriarch() >- .getPackagePart() >+ >+ clonedDg.addRelation(relation.getId(), rel); >+ >+ clonedDg >+ .getPackagePart() > .addRelationship(relation.getTargetURI(), relation.getTargetMode(), > relation.getRelationshipType(), relation.getId()); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 56467
:
31570
| 31574