Bug 37451

Summary: HSLF: Slide.getTextRuns() doesn't return text runs found in the slide's PPDrawing container
Product: POI Reporter: Yegor Kozlov <yegor>
Component: POI OverallAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 3.0-dev   
Target Milestone: ---   
Hardware: Other   
OS: Windows 2000   
Attachments: text runs from PPDrawing are included in Slide.getTextRuns
Text Runs in a PPDrawing container

Description Yegor Kozlov 2005-11-10 17:40:18 UTC
Slide.getTextRuns() doesn't return all found text runs in the slide. As I see 
it is correctly initialized in Slide constructor but not included in the output 
array.
Comment 1 Yegor Kozlov 2005-11-10 17:41:50 UTC
Created attachment 16939 [details]
text runs from PPDrawing are included in Slide.getTextRuns
Comment 2 Nick Burch 2005-11-10 17:50:17 UTC
Ah, I wasn't sure if there ever would be TextRuns in there or not! I couldn't
find any with text in there, so didn't include it.

Could you attach a PPT file with them to the bug? That way, I can write a test
to go with the patch.
Comment 3 Yegor Kozlov 2005-11-10 18:06:51 UTC
Go to Insert menu and choose Text Box. Text inserted in such a way is not 
returned by your code. See the atatched ppt file.
Comment 4 Yegor Kozlov 2005-11-10 18:08:09 UTC
Created attachment 16940 [details]
Text Runs in a PPDrawing container
Comment 5 Nick Burch 2005-11-13 18:03:02 UTC
I've applied the change (with a tweak to ensure that the run array size is
correct), and added the PPT file to the test suite. Looks like it's working
properly now, but shout if you spot anything else missing.