Skip to content

Commit a5379f5

Browse files
committed
PDFBOX-6066: add comment
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1928360 13f79535-47bb-0310-9956-ffa450edef68
1 parent 31d5411 commit a5379f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fontbox/src/main/java/org/apache/fontbox/ttf/GlyphSubstitutionTable.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,8 @@ private LookupListTable readLookupList(TTFDataStream data, long offset) throws I
297297
lookups[i] = data.readUnsignedShort();
298298
if (lookups[i] == 0)
299299
{
300+
// no early return here and in the other one; if we do, the file from PDFBOX-6066
301+
// no longer renders properly.
300302
LOG.error("lookups[{}] is 0 at offset {}", i, data.getCurrentPosition() - 2);
301303
}
302304
else if (offset + lookups[i] > data.getOriginalDataSize())

0 commit comments

Comments
 (0)