Index: fpdfsdk/fpdfview.cpp |
diff --git a/fpdfsdk/fpdfview.cpp b/fpdfsdk/fpdfview.cpp |
index 41fdc64c74dbc4dd65caec9f34e5236bb4d09beb..3ab81fe1124321bd4f4e355aad20bdc1310eab5a 100644 |
--- a/fpdfsdk/fpdfview.cpp |
+++ b/fpdfsdk/fpdfview.cpp |
@@ -685,7 +685,7 @@ DLLEXPORT void STDCALL FPDF_ClosePage(FPDF_PAGE page) { |
// This will delete the |pPageView| object. We must cleanup the PageView |
// first because it will attempt to reset the View on the |pPage| during |
// destruction. |
- pPageView->GetFormFillEnv()->GetSDKDocument()->RemovePageView(pPage); |
+ pPageView->GetFormFillEnv()->RemovePageView(pPage); |
// If the page was owned then the pageview will have deleted the page. |
if (owned) |
return; |