Index: fpdfsdk/cpdfsdk_document.cpp |
diff --git a/fpdfsdk/cpdfsdk_document.cpp b/fpdfsdk/cpdfsdk_document.cpp |
index 78bcf49185c4b32a85c90602254b26759c4b7cd7..a3d2680f913ad54ff0252717e48611df39b9e244 100644 |
--- a/fpdfsdk/cpdfsdk_document.cpp |
+++ b/fpdfsdk/cpdfsdk_document.cpp |
@@ -63,7 +63,7 @@ CPDFSDK_PageView* CPDFSDK_Document::GetPageView( |
if (!ReNew) |
return nullptr; |
- CPDFSDK_PageView* pPageView = new CPDFSDK_PageView(this, pUnderlyingPage); |
+ CPDFSDK_PageView* pPageView = new CPDFSDK_PageView(GetEnv(), pUnderlyingPage); |
m_pageMap[pUnderlyingPage] = pPageView; |
// Delay to load all the annotations, to avoid endless loop. |
pPageView->LoadFXAnnots(); |