diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/TextPieceTable.java b/src/scratchpad/src/org/apache/poi/hwpf/model/TextPieceTable.java index 43bfcf812..59720f1dd 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/model/TextPieceTable.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/TextPieceTable.java @@ -240,7 +240,7 @@ public class TextPieceTable implements CharIndexTranslator { for(TextPiece tp : _textPiecesFCOrder) { int pieceStart = tp.getPieceDescriptor().getFilePosition(); - if (bytePos > pieceStart + tp.bytesLength()) { + if (bytePos >= pieceStart + tp.bytesLength()) { continue; }