Bug 46288

Summary: Red crosses (X) instead of images in created Slideshows
Product: POI Reporter: Daniel <daniel.kessler>
Component: HSLFAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 3.8-dev   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Attachments: Patch to correct the refcount handling for Fill pictures

Description Daniel 2008-11-25 03:14:33 UTC
I create a slideshow the usual way.
The only objects i insert, are images.

The way i do this is the following:

slide = slideShow.createSlide();
			slide.setFollowMasterBackground(false);
			
			Fill fill = slide.getBackground().getFill();
			int pictureData = slideShow.addPicture(outputFile, Picture.PNG);
			fill.setFillType(Fill.FILL_PICTURE);
			fill.setPictureData(pictureData);

I guess its easy to understand.
after creating my slideshow, i open it in powerpoint and the first things i see are red X's or Crosses.

The Symbol for a image that can not be shown.
A workaround to see the images is so save the Slideshow againg and switch the viewing mode.

am i doing something wrong?
are there known issues?
i would like to see my images correct.

Regards,
DAniel
Comment 1 Jim Talbut 2011-12-08 21:05:41 UTC
The problem is that the refcount on the EscherBSERecord is not maintained correctly for fills (although it is for Pictures).
I'll upload a patch as soon as I've got the tests working.
Comment 2 Jim Talbut 2011-12-08 21:11:50 UTC
Created attachment 28056 [details]
Patch to correct the refcount handling for Fill pictures
Comment 3 Yegor Kozlov 2011-12-09 12:51:39 UTC
Applied in r1212381

Thanks,
Yegor