Bug 44985 - HSLF: modifying text causes error: Powerpoint can't read this text
Summary: HSLF: modifying text causes error: Powerpoint can't read this text
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: HSLF (show other bugs)
Version: 3.0-dev
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-13 00:50 UTC by Sylvain Berthouzoz
Modified: 2008-05-14 05:45 UTC (History)
0 users



Attachments
Template to modify (74.50 KB, application/vnd.ms-powerpoint)
2008-05-13 00:50 UTC, Sylvain Berthouzoz
Details
Source code that produce the bug (5.31 KB, text/plain)
2008-05-13 00:51 UTC, Sylvain Berthouzoz
Details
output produce by POI (74.50 KB, application/vnd.ms-powerpoint)
2008-05-13 00:55 UTC, Sylvain Berthouzoz
Details

Note You need to log in before you can comment on or make changes to this bug.
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