diff options
Diffstat (limited to 'fpdfsdk/fpdf_editimg.cpp')
-rw-r--r-- | fpdfsdk/fpdf_editimg.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/fpdf_editimg.cpp b/fpdfsdk/fpdf_editimg.cpp index 9485a75002..fed1581e2d 100644 --- a/fpdfsdk/fpdf_editimg.cpp +++ b/fpdfsdk/fpdf_editimg.cpp @@ -305,12 +305,12 @@ FPDFImageObj_GetImageMetadata(FPDF_PAGEOBJECT image_object, metadata->colorspace = FPDF_COLORSPACE_UNKNOWN; CPDF_Page* pPage = CPDFPageFromFPDFPage(page); - if (!pPage || !pPage->m_pDocument.Get() || !pImg->GetStream()) + if (!pPage || !pPage->GetDocument() || !pImg->GetStream()) return true; auto pSource = pdfium::MakeRetain<CPDF_DIBSource>(); CPDF_DIBSource::LoadState ret = pSource->StartLoadDIBSource( - pPage->m_pDocument.Get(), pImg->GetStream(), false, nullptr, + pPage->GetDocument(), pImg->GetStream(), false, nullptr, pPage->m_pPageResources.Get()); if (ret == CPDF_DIBSource::LoadState::kFail) return true; |