poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 55791] PartAlreadyExistsException when removing and adding slides
Date Sun, 01 Mar 2015 20:28:07 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=55791

Dominik Stadler <dominik.stadler@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|cannot delete slides when   |PartAlreadyExistsException
                   |using layout to create new  |when removing and adding
                   |slides                      |slides

--- Comment #1 from Dominik Stadler <dominik.stadler@gmx.at> ---
Reproducer with existing sample documents, so it is not really related to
layout/master slides: 

    @Test
    public void bug55791a() {
        XMLSlideShow ppt =
XSLFTestDataSamples.openSampleDocument("45541_Footer.pptx");
        removeAndCreateSlide(ppt);
    }

    @Test
    public void bug55791b() {
        XMLSlideShow ppt =
XSLFTestDataSamples.openSampleDocument("SampleShow.pptx");
        removeAndCreateSlide(ppt);
    }

    private void removeAndCreateSlide(XMLSlideShow ppt) {
        assertTrue(ppt.getSlides().length > 1);
        ppt.removeSlide(1);
        assertNotNull(ppt.createSlide());
    }

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message