https://issues.apache.org/bugzilla/show_bug.cgi?id=54736

            Bug ID: 54736
           Summary: [REGRESSION] Some text is now missing from slides
           Product: POI
           Version: 3.9
          Hardware: PC
                OS: other
            Status: NEW
          Severity: regression
          Priority: P2
         Component: HSLF
          Assignee: [email protected]
          Reporter: [email protected]
    Classification: Unclassified

Created attachment 30087
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30087&action=edit
test.ppt

A test which we had for our own system started failing after updating to POI
3.9 (it was passing in POI 3.7.)

The PowerPoint file itself is the simplest file we have in our collection, so
my assumption is that this is a wide-spread problem which could affect any
file. Yet, in our own tests, this is the only file which is failing.

    @Test
    public void testSlideText() throws Exception {
        File file = new File("test.ppt");
        SlideShow slideShow = new SlideShow(new HSLFSlideShow(new
FileInputStream(file)));
        Slide slide1 = slideShow.getSlides()[0];
        TextRun[] textRuns = slide1.getTextRuns();
        assertEquals("Expected 6 runs of text", 6, textRuns.length);
        assertEquals("Wrong text", "Example Powerpoint",
textRuns[0].getText());
        assertEquals("Wrong text", "\n", textRuns[1].getText());
        assertEquals("Wrong text", "text1", textRuns[2].getText());
        assertEquals("Wrong text", "text2", textRuns[3].getText());
        assertEquals("Wrong text", "text3", textRuns[4].getText());
        assertEquals("Wrong text", "text4", textRuns[5].getText());
    }

Like our own internal test, this test also passes on 3.7 but fails on 3.9.

(I posted this to the mailing list as well. No answer came back yet - the mail
may have been swallowed - but I have since reproduced it in the absence of any
of our own code and dug around for a bit. I can't find the missing text
anywhere in the object tree.)

-- 
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