Summary: | Creation of slidemaster background results in a red cross | ||
---|---|---|---|
Product: | POI | Reporter: | tobias.meissner |
Component: | HSLF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 3.7-FINAL | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All |
Description
tobias.meissner
2011-04-19 08:00:19 UTC
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. |