The order of slides is wrong when using slideShow.getSlides();. also, the slide.getSlideNumber is corresponds to the order of the lides array, but does not correspond to the real order of slides I read in the mailing lists that other people encountered the same problem too, and that there were some fixes for that also. But I'm still getting it wrong...
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?