Index: core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp |
diff --git a/core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp b/core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp |
index 0f7d128786b1d406e08ac9693e1572913c922737..6ccc4a345be0963e96f4ee151d69ff02f364dfa6 100644 |
--- a/core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp |
+++ b/core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp |
@@ -1206,11 +1206,9 @@ FX_BOOL CPDF_CIDFont::_Load() { |
return FALSE; |
} |
CFX_ByteString subtype = pCIDFontDict->GetString(FX_BSTRC("Subtype")); |
- m_bType1 = FALSE; |
- if (subtype == FX_BSTRC("CIDFontType0")) { |
- m_bType1 = TRUE; |
- } |
- if (pEncoding->GetType() == PDFOBJ_NAME) { |
+ m_bType1 = (subtype == FX_BSTRC("CIDFontType0")); |
+ |
+ if (pEncoding->IsName()) { |
CFX_ByteString cmap = pEncoding->GetString(); |
m_pCMap = |
CPDF_ModuleMgr::Get() |