Index: fpdfsdk/fpdfview.cpp |
diff --git a/fpdfsdk/fpdfview.cpp b/fpdfsdk/fpdfview.cpp |
index 0c3a95d0946e7cf45793e61bae7ac2ae08129f86..dee71ac9e2bff399a169fbf23075ce519d4f8980 100644 |
--- a/fpdfsdk/fpdfview.cpp |
+++ b/fpdfsdk/fpdfview.cpp |
@@ -367,7 +367,8 @@ DLLEXPORT FPDF_DOCUMENT STDCALL FPDF_LoadDocument(FPDF_STRING file_path, |
std::unique_ptr<CPDF_Document> pDocument( |
new CPDF_Document(std::move(pParser))); |
- CPDF_Parser::Error error = pParser->StartParse(pFileAccess, pDocument.get()); |
+ CPDF_Parser::Error error = |
+ pDocument->GetParser()->StartParse(pFileAccess, pDocument.get()); |
if (error != CPDF_Parser::SUCCESS) { |
ProcessParseError(error); |
return nullptr; |