Bug 44985

Summary: HSLF: modifying text causes error: Powerpoint can't read this text
Product: POI Reporter: Sylvain Berthouzoz <sberthouzoz>
Component: HSLFAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 3.0-dev   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Attachments: Template to modify
Source code that produce the bug
output produce by POI

Description Sylvain Berthouzoz 2008-05-13 00:50:18 UTC
Created attachment 21954 [details]
Template to modify

Hello everyone,

I have a ppt file as template and I want to replace some parts of text (tagged between < and >)  of the text in it. Therefore I loop over each slide, get the TextRuns and RichTextRuns, and call richTextRun.setText(text) for updating the presentation and keeping the styles.

At the end, I write the SlideShow to a new file. But when I open the output with PowerPoint, I get an error...
I use POI 3.1-beta1 and PowerPoint2003 SP3 on WindowsXP.
Comment 1 Sylvain Berthouzoz 2008-05-13 00:51:13 UTC
Created attachment 21955 [details]
Source code that produce the bug
Comment 2 Sylvain Berthouzoz 2008-05-13 00:55:06 UTC
Created attachment 21956 [details]
output produce by POI
Comment 3 Yegor Kozlov 2008-05-14 05:45:51 UTC
Fixed in r656252

TextSpecInfoAtom wasn't properly updated when the parent text was changed.

Yegor