poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 51085] Creation of slidemaster background results in a red cross
Date Sat, 16 Jan 2016 18:07:09 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=51085

Andreas Beeker <kiwiwings@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WORKSFORME
             Status|NEW                         |RESOLVED

--- Comment #1 from Andreas Beeker <kiwiwings@apache.org> ---
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();
}

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message