Bug 39348 - Can't create new slide when the origin ppt contains slide
Summary: Can't create new slide when the origin ppt contains slide
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: HSLF (show other bugs)
Version: 3.0-dev
Hardware: Other other
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-19 10:50 UTC by Jason Bourne
Modified: 2006-07-02 09:11 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Bourne 2006-04-19 10:50:49 UTC
If the ppt contains some slides, the creation of new slide will be failed. In 
your testcases, the slide's number is right, but if you use the 
FileOutputStream to create the file instead of the ByteArrayStream, you will 
see the slide does not exits although the slide's number increased.
Comment 1 Nick Burch 2006-04-19 15:44:18 UTC
I've just committed a new test (usermodel/TestAddingSlides), which proves that
things are fine when we:
* add a slide to a slideshow without one
* add a slide to a slideshow with one slide
* add a slide to a slideshow with two slides
(and then write them out, and read them back in)

Could you supply a unit test that fails, so we can see what's not working for you?
Comment 2 Nick Burch 2006-07-02 16:11:42 UTC
Slide adding and ordering code has been changed quite a bit since this bug was
opened, and all slide addition tests pass just fine. Hopefully your problem has
now been fixed.

Please re-open this bug if you still have an issue.