Summary: | wrong order of slides in slideShow | ||
---|---|---|---|
Product: | POI | Reporter: | karajo <kratosh> |
Component: | HSLF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | major | ||
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | Windows XP | ||
Attachments: | Example of wrong order of slides |
Description
karajo
2006-04-06 20:23:22 UTC
Could you please upload a test file that shows this behavoir? (All the current test files do have their slides returned in the right order, so we'll need something where it breaks to be able to figure it out from) Created attachment 18039 [details]
Example of wrong order of slides
I found the problem - the slides are ordered by the order in which they were created, meaning if you added the first slide last, it will appear as the last slide in the Slide.getSlides() array. Attached is a sample ppt file. *** Bug 39229 has been marked as a duplicate of this bug. *** I've added this file to the test set, so we have something to work with. However, since it now looks like PowerPoint doesn't do an internal slide ID renumber when you swap the position of two slides, things are going to be a bit trickier. We'll need to find where PowerPoint stores what order it thinks the slides should be displayed in, before we can return the slides in the correct ordering ourselves. I think this has now been fixed. (I have a testcase for your problem file that now passes) Could you give a svn checkout a try on your more complex files? |