Bug 56549

Summary: [PATCH] Cell missings from table
Product: POI Reporter: Jk <korvin.lucky>
Component: HWPFAssignee: POI Developers List <dev>
Severity: regression Keywords: PatchAvailable
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description Jk 2014-05-20 13:54:56 UTC
in file apachePoi\src\scratchpad\src\org\apache\poi\hwpf\model\TextPieceTable.java

in next function 
    public int[][] getCharIndexRanges( int startBytePosInclusive,
            int endBytePosExclusive )
        List<int[]> result = new LinkedList<int[]>();
        for ( TextPiece textPiece : _textPiecesFCOrder )
            final int tpStart = textPiece.getPieceDescriptor()
            final int tpEnd = textPiece.getPieceDescriptor().getFilePosition()
                    + textPiece.bytesLength();
            if ( (startBytePosInclusive >= tpEnd) )

//HERE YOU HAVE ">" - it's wrong that's why sometimes the property "being end of row" have not the last cell, but second counting from end. Can send you example if i can see any react from you.
Comment 1 Dominik Stadler 2016-03-12 17:03:02 UTC
This is now applied via r1734718, thanks for the suggested fix.