diff options
Diffstat (limited to 'core/fpdfapi/fpdf_parser')
-rw-r--r-- | core/fpdfapi/fpdf_parser/cpdf_document.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/fpdfapi/fpdf_parser/cpdf_document.cpp b/core/fpdfapi/fpdf_parser/cpdf_document.cpp index 13d9737b5b..79965a23bb 100644 --- a/core/fpdfapi/fpdf_parser/cpdf_document.cpp +++ b/core/fpdfapi/fpdf_parser/cpdf_document.cpp @@ -394,9 +394,10 @@ int InsertDeletePDFPage(CPDF_Document* pDoc, } else { int nPages = pKid->GetIntegerBy("Count"); if (nPagesToGo < nPages) { - if (pdfium::ContainsValue(*pVisited, pKid)) + if (pdfium::ContainsKey(*pVisited, pKid)) return -1; - pdfium::ScopedSetInsertion<CPDF_Dictionary*>(pVisited, pKid); + + pdfium::ScopedSetInsertion<CPDF_Dictionary*> insertion(pVisited, pKid); if (InsertDeletePDFPage(pDoc, pKid, nPagesToGo, pPage, bInsert, pVisited) < 0) { return -1; |