mirror of https://github.com/apache/poi.git
Bug 60656 - EMF image support in slideshows
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1858628 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ea0e01acc1
commit
6b69baf2e1
|
@ -51,8 +51,7 @@ public class HemfPlusRecordIterator implements Iterator<HemfPlusRecord> {
|
|||
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;
|
||||
}
|
||||
|
|
|
@ -271,7 +271,7 @@ public class HwmfEscape implements HwmfRecord {
|
|||
}
|
||||
|
||||
// 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
|
||||
|
|
Loading…
Reference in New Issue