https://issues.apache.org/bugzilla/show_bug.cgi?id=52272
Bug #: 52272
Summary: [PATCH] Inserting images on cloned shet with images.
Product: POI
Version: 3.8-dev
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: HSSF
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Created attachment 28012
--> https://issues.apache.org/bugzilla/attachment.cgi?id=28012
Patch that fix described problem in this issue.
TC
1)Create xls file with one sheet with images (see attached example).
2)Clone this sheet.
3)Try to obtain HSSFPatriarch by calling HSSFSheet.getDrawingPatriarch()
ER
HSSFPatriarch will be returned.
AR
null is returned.
The bug produces problem:
To insert image on cloned sheet you have to call createDrawingPatriarch(), but
that method remove all existence image from this sheet.
I found the problem code and fix it (see attached patch).
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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]