Free Support Forum -

Portion.setText("") causes entire slide to clear


I created a PPT file with a single Paragraph with the line "a b c". The a, b, and c are all the same font height. The two spaces are a different height, but the same as each other. When I replace the text on the Portion that contains "b", with an empty string, everything on the slide is blanked.

I was able to workaround this issue by setting the font size for all the portions to be the same height in the PPT template. Is this something that I am doing wrong?

I attached a small test program that shows the issue. I am using Aspose.PowerPoint for Java version

Thank you,
Randy Stegbauer

Dear Randy,

Yes, that’s right.
Portion must contain any text (spaces or characters) for correct work.
If you don’t need text you should delete this Portion.