Thanks, I confirmed the bug.
It seems to be related to
https://issues.apache.org/bugzilla/show_bug.cgi?id=45088
Yegor
> Hello
> This problem occurs only on one condition, '\n' needs to be the last
> character in the first RichTextRun.
> Error sample code :
> SlideShow ppt = new SlideShow();
>
> Slide s = ppt.createSlide();
> TextBox tb = new TextBox();
> TextRun tr = tb.createTextRun();
>
> tb.setAnchor(new Rectangle(10,10,500,20));
>
> tr.getRichTextRuns()[0].setText("hello\n");
> tr.getRichTextRuns()[0].setFontName("Calibri");
> tr.getRichTextRuns()[0].setFontSize(12);
>
> RichTextRun rtr = tr.appendText("world");
> rtr.setFontName("Times New Roman");
> rtr.setFontSize(12);
>
> s.addShape(tb);
>
> FileOutputStream out = new
> FileOutputStream("report/slideshow.ppt");
> ppt.write(out);
> out.close();
> Running sample code :
> SlideShow ppt = new SlideShow();
>
> Slide s = ppt.createSlide();
> TextBox tb = new TextBox();
> TextRun tr = tb.createTextRun();
>
> tb.setAnchor(new Rectangle(10,10,500,20));
>
> tr.getRichTextRuns()[0].setText("hello\n ");
> tr.getRichTextRuns()[0].setFontName("Calibri");
> tr.getRichTextRuns()[0].setFontSize(12);
>
> RichTextRun rtr = tr.appendText("world");
> rtr.setFontName("Times New Roman");
> rtr.setFontSize(12);
>
> s.addShape(tb);
>
> FileOutputStream out = new
> FileOutputStream("report/slideshow.ppt");
> ppt.write(out);
> out.close();
> Regards
> MG
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]