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).
Created attachment 28013 [details] Sample input xls file for reproducing this issue.
This problem should be fixed in trunk. Please try with a nightly build - see download links on http://poi.apache.org/ or build yourself from SVN trunk, see http://poi.apache.org/subversion.html