Index: xfa/src/fxfa/src/app/xfa_fontmgr.cpp |
diff --git a/xfa/src/fxfa/src/app/xfa_fontmgr.cpp b/xfa/src/fxfa/src/app/xfa_fontmgr.cpp |
index 02f3d5e4b63f7657e3fdd2f2a975b7319f7130c1..0c3f636dd25e39c7498f87fe0c2ea60a96e7186f 100644 |
--- a/xfa/src/fxfa/src/app/xfa_fontmgr.cpp |
+++ b/xfa/src/fxfa/src/app/xfa_fontmgr.cpp |
@@ -1871,7 +1871,7 @@ IFX_Font* CXFA_PDFFontMgr::FindFont(CFX_ByteString strPsName, |
continue; |
} |
CPDF_Object* pDirect = pObj->GetDirect(); |
- if (pDirect == NULL || pDirect->GetType() != PDFOBJ_DICTIONARY) { |
+ if (!pDirect || !pDirect->IsDictionary()) { |
return NULL; |
} |
CPDF_Dictionary* pFontDict = (CPDF_Dictionary*)pDirect; |