mirror of https://github.com/apache/poi.git
fix 51944 - PAPFormattedDiskPage.getPAPX - IndexOutOfBounds
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1195079 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a430d57858
commit
2ac2e79652
|
@ -34,6 +34,7 @@
|
|||
|
||||
<changes>
|
||||
<release version="3.8-beta5" date="2011-??-??">
|
||||
<action dev="poi-developers" type="fix">51944 - PAPFormattedDiskPage.getPAPX - IndexOutOfBounds</action>
|
||||
<action dev="poi-developers" type="fix">52032 - HWPF - ArrayIndexOutofBoundsException with no stack trace (broken after revision 1178063)</action>
|
||||
<action dev="poi-developers" type="add">support for converting pptx files into images with a PPTX2PNG tool</action>
|
||||
<action dev="poi-developers" type="add">52050 - Support for the Excel RATE function</action>
|
||||
|
|
|
@ -59,11 +59,8 @@ public final class OldCHPBinTable extends CHPBinTable
|
|||
CHPFormattedDiskPage cfkp = new CHPFormattedDiskPage(documentStream,
|
||||
pageOffset, tpt);
|
||||
|
||||
int fkpSize = cfkp.size();
|
||||
|
||||
for (int y = 0; y < fkpSize; y++)
|
||||
for ( CHPX chpx : cfkp.getCHPXs() )
|
||||
{
|
||||
CHPX chpx = cfkp.getCHPX(y);
|
||||
if ( chpx != null )
|
||||
_textRuns.add( chpx );
|
||||
}
|
||||
|
|
|
@ -51,16 +51,12 @@ public final class OldPAPBinTable extends PAPBinTable
|
|||
PAPFormattedDiskPage pfkp = new PAPFormattedDiskPage(documentStream,
|
||||
documentStream, pageOffset, tpt);
|
||||
|
||||
int fkpSize = pfkp.size();
|
||||
|
||||
for (int y = 0; y < fkpSize; y++)
|
||||
for ( PAPX papx : pfkp.getPAPXs() )
|
||||
{
|
||||
PAPX papx = pfkp.getPAPX(y);
|
||||
if (papx != null) {
|
||||
if ( papx != null )
|
||||
_paragraphs.add( papx );
|
||||
}
|
||||
}
|
||||
}
|
||||
Collections.sort( _paragraphs, PropertyNode.StartComparator.instance );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -720,6 +720,14 @@ public class TestBugs extends TestCase
|
|||
.openSampleFile( "Bug51834.doc" ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Bug 51944 - PAPFormattedDiskPage.getPAPX - IndexOutOfBounds
|
||||
*/
|
||||
public void testBug51944() throws Exception
|
||||
{
|
||||
HWPFTestDataSamples.openOldSampleFile( "Bug51944.doc" );
|
||||
}
|
||||
|
||||
/**
|
||||
* Bug 52032 - [BUG] & [partial-PATCH] HWPF - ArrayIndexOutofBoundsException
|
||||
* with no stack trace (broken after revision 1178063)
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue