diff options
Diffstat (limited to 'fpdfsdk/fpdf_ppo.cpp')
-rw-r--r-- | fpdfsdk/fpdf_ppo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/fpdf_ppo.cpp b/fpdfsdk/fpdf_ppo.cpp index 1790e17fb3..b73042466b 100644 --- a/fpdfsdk/fpdf_ppo.cpp +++ b/fpdfsdk/fpdf_ppo.cpp @@ -618,9 +618,9 @@ bool CPDF_NPageToOneExporter::ExportNPagesToOne( if (!pSrcPageDict) return false; - CPDF_Page srcPage(src(), pSrcPageDict, true); + auto srcPage = pdfium::MakeRetain<CPDF_Page>(src(), pSrcPageDict, true); NupPageSettings settings = - nupState.CalculateNewPagePosition(srcPage.GetPageSize()); + nupState.CalculateNewPagePosition(srcPage->GetPageSize()); AddSubPage(pSrcPageDict, settings, &objectNumberMap, &pageXObjectMap, &xObjNameNumberMap, &bsContent); } |