| Index: fpdfsdk/javascript/Document.cpp
|
| diff --git a/fpdfsdk/javascript/Document.cpp b/fpdfsdk/javascript/Document.cpp
|
| index caaeba884e4f6ece8c53363df8e7b6d34925dde8..ace805f3b57861581077a211c96212e7c564f477 100644
|
| --- a/fpdfsdk/javascript/Document.cpp
|
| +++ b/fpdfsdk/javascript/Document.cpp
|
| @@ -492,7 +492,7 @@ FX_BOOL Document::removeField(IJS_Context* cc,
|
| UnderlyingPageType* pPage = pWidget->GetUnderlyingPage();
|
| ASSERT(pPage);
|
|
|
| - CPDFSDK_PageView* pPageView = m_pDocument->GetPageView(pPage);
|
| + CPDFSDK_PageView* pPageView = m_pDocument->GetPageView(pPage, true);
|
| pPageView->DeleteAnnot(pWidget);
|
| pPageView->UpdateRects(aRefresh);
|
| }
|
|
|