When using the following lines of code (worked in version 3.0.2 ), the powerpoint slide is created, but instead of a proper background a red cross appears. The used layoutfile is an existing PNG file, which definitely worked in older versions. SlideShow ppt = new SlideShow() SlideMaster master = ppt.getSlidesMasters()[0]; Fill fill = master.getBackground().getFill(); int idx = ppt.addPicture(layoutFile, Picture.PNG); fill.setFillType(Fill.FILL_PICTURE); fill.setPictureData(idx); ...
This is not happening anymore - if unsure, please add your <layoutFile>.png. This was my testcode: @Test public void bug51085() throws IOException { File sample = HSLFTestDataSamples.getSampleFile("tomcat.png"); HSLFSlideShow ppt = new HSLFSlideShow(); HSLFSlideMaster sm = ppt.getSlideMasters().get(0); HSLFFill fill = sm.getBackground().getFill(); HSLFPictureData pd = ppt.addPicture(sample, PictureData.PictureType.PNG); fill.setFillType(HSLFFill.FILL_PICTURE); fill.setPictureData(pd); FileOutputStream fos = new FileOutputStream("bla.ppt"); ppt.createSlide(); ppt.write(fos); fos.close(); }
What revision was the test case from comment 1 added to the test suite?
(In reply to Javen O'Neal from comment #2) > What revision was the test case from comment 1 added to the test suite? I haven't added the test case, as this was a visual test only. I usually only add testcases, when I've changed something on the code for it.