https://bz.apache.org/bugzilla/show_bug.cgi?id=58804

--- Comment #2 from [email protected] ---
The following testcase illustrates the problem :

    public void testImageCountLayout() throws Exception {
        HWPFDocument docA =
HWPFTestDataSamples.openSampleFile("Bug58804-picture_single.doc");

        ByteArrayOutputStream out = new ByteArrayOutputStream();
        docA.write(out);
        out.close();

        HWPFDocument docB = new HWPFDocument(new
ByteArrayInputStream(out.toByteArray()));

        assertNotNull(docA.getPicturesTable());
        assertNotNull(docB.getPicturesTable());

        PicturesTable picA = docA.getPicturesTable();
        PicturesTable picB = docB.getPicturesTable();

        List<Picture> picturesA = picA.getAllPictures();
        List<Picture> picturesB = picB.getAllPictures();

        assertEquals(1, picturesA.size());
        assertEquals(1, picturesB.size());
    }

In this case, the test fails because picturesB is empty where it should be 1.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to