diff options
author | Bo Xu <bo_xu@foxitsoftware.com> | 2014-07-29 06:38:16 -0700 |
---|---|---|
committer | Bo Xu <bo_xu@foxitsoftware.com> | 2014-07-29 06:38:16 -0700 |
commit | cc965275f436267684a3f185ea3335e203cee6f9 (patch) | |
tree | c188b8e208f1a839391798bb9ba076efde73d9e3 /core/src/fpdfapi | |
parent | 621d4de9672bf8def81edba90b9a6d4fd83ea1da (diff) | |
download | pdfium-cc965275f436267684a3f185ea3335e203cee6f9.tar.xz |
Fix the typo of "Resources" keyword
BUG=None
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/420793004
Diffstat (limited to 'core/src/fpdfapi')
-rw-r--r-- | core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp index 11370075d6..b90c784f6f 100644 --- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp +++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp @@ -4181,7 +4181,7 @@ FX_BOOL CPDF_DataAvail::HaveResourceAncestor(CPDF_Dictionary *pDict) if (!pParentDict) { return FALSE; } - CPDF_Object *pRet = pParentDict->GetElement("Resource"); + CPDF_Object *pRet = pParentDict->GetElement("Resources"); if (pRet) { m_pPageResource = pRet; return TRUE; @@ -4287,11 +4287,12 @@ FX_BOOL CPDF_DataAvail::IsPageAvail(FX_INT32 iPage, IFX_DownloadHints* pHints) } } if (m_pPageDict && !m_bNeedDownLoadResource) { - CPDF_Object *pRes = m_pPageDict->GetElement("Resource"); - if (!pRes) { + m_pPageResource = m_pPageDict->GetElement("Resources"); + if (!m_pPageResource) { m_bNeedDownLoadResource = HaveResourceAncestor(m_pPageDict); + } else { + m_bNeedDownLoadResource = TRUE; } - m_bNeedDownLoadResource = FALSE; } if (m_bNeedDownLoadResource) { FX_BOOL bRet = CheckResources(pHints); |