| Index: core/fpdfapi/fpdf_parser/cpdf_document.cpp
|
| diff --git a/core/fpdfapi/fpdf_parser/cpdf_document.cpp b/core/fpdfapi/fpdf_parser/cpdf_document.cpp
|
| index a05a24e07f7de412eafb331539c6542860812865..31d44b01fe72c18c4f058787d60177b1f6596314 100644
|
| --- a/core/fpdfapi/fpdf_parser/cpdf_document.cpp
|
| +++ b/core/fpdfapi/fpdf_parser/cpdf_document.cpp
|
| @@ -729,9 +729,9 @@ uint32_t CPDF_Document::GetUserPermissions() const {
|
| }
|
|
|
| FX_BOOL CPDF_Document::IsFormStream(uint32_t objnum, FX_BOOL& bForm) const {
|
| - auto it = m_IndirectObjs.find(objnum);
|
| - if (it != m_IndirectObjs.end()) {
|
| - CPDF_Stream* pStream = it->second->AsStream();
|
| + CPDF_Object* pObj = GetIndirectObject(objnum);
|
| + if (pObj) {
|
| + CPDF_Stream* pStream = pObj->AsStream();
|
| bForm = pStream && pStream->GetDict()->GetStringBy("Subtype") == "Form";
|
| return TRUE;
|
| }
|
|
|