poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 51302] bullets fromat lost
Date Sun, 01 Nov 2015 23:24:02 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=51302

Andreas Beeker <kiwiwings@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|PC                          |All
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED
                 OS|Windows XP                  |All
         Depends on|                            |45124

--- Comment #1 from Andreas Beeker <kiwiwings@apache.org> ---
This works now as expected and partly fixed as part of #45124

For reference - this is my testcode:

public void bug51302() throws IOException {
    HSLFSlideShow ppt = new HSLFSlideShow();

    HSLFSlide slide = ppt.createSlide();

    HSLFTextBox shape = slide.createTextBox();
    HSLFTextRun tr0 = shape.appendText("Apache POI 3.7 Demo", true);
    tr0.setFontSize(25d);
    HSLFTextRun tr1 = 
shape.appendText("January\u000bFebruary\u000bMarch\u000bApril", true);
    tr1.setFontSize(18d);
    HSLFTextParagraph tp = tr1.getTextParagraph();
    tp.setBulletStyle('\u25CF', Color.black);
    tp.setLeftMargin(30d);

    shape.setAnchor(new Rectangle(100, 100, 400, 500));

    FileOutputStream out = new FileOutputStream("bullets.ppt");
    ppt.write(out);
    out.close();

    ppt.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