public HemfPlusRecord next() {
HemfPlusRecord toReturn = currentRecord;
// add the size for recordId/flags/recordSize/dataSize = 12 bytes
- final boolean isEOF = (limit == -1 || (leis.getReadIndex()-startIdx)+12 >= limit);
- // (currentRecord instanceof HemfPlusMisc.EmfEof)
+ final boolean isEOF = (limit == -1 || (leis.getReadIndex()-startIdx)+12 > limit);
currentRecord = isEOF ? null : _next();
return toReturn;
}
}
// A 32-bit unsigned integer that defines this record as a WMF Comment record.
- int commentIdentifier = leis.readInt();
+ commentIdentifier = leis.readInt();
if (commentIdentifier != EMF_COMMENT_IDENTIFIER) {
// there are some WMF implementation using this record as a MFCOMMENT or similar