|Summary:||[PATCH] Inserting images on cloned sheet with images.|
|Component:||HSSF||Assignee:||POI Developers List <dev>|
|Bug Depends on:|
Patch that fix described problem in this issue.
Sample input xls file for reproducing this issue.
Description Michael 2011-12-01 17:42:28 UTC
Created attachment 28012 [details] 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).
Comment 1 Michael 2011-12-01 17:43:10 UTC
Created attachment 28013 [details] Sample input xls file for reproducing this issue.