소스 검색

* Fix bug #34463, CMAP with 1 entry is ignored. Patch by Petr Kristan.

git-svn-id: trunk@40054 -
michael 7 년 전
부모
커밋
68f74289e1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/fcl-pdf/src/fpparsettf.pp

+ 1 - 1
packages/fcl-pdf/src/fpparsettf.pp

@@ -532,7 +532,7 @@ begin
     FSubtables[i].Offset:=ReadUInt32(AStream); // 4 bytes - Offset of subtable
     end;
   UE:=FCMapH.SubtableCount-1;
-  if UE=0 then
+  if UE=-1 then
     // No CMap subtable entries, this is not an error, just exit.
     exit;
   While (UE>=0) and ((FSubtables[UE].PlatformID<>3) or (FSubtables[UE].EncodingID<> 1)) do