Index: fpdfsdk/javascript/Document.cpp |
diff --git a/fpdfsdk/javascript/Document.cpp b/fpdfsdk/javascript/Document.cpp |
index 551d649830453986754bd58f8bb23d0219491206..fa2f7ae4e40094a37f12106f6b069b26443d1884 100644 |
--- a/fpdfsdk/javascript/Document.cpp |
+++ b/fpdfsdk/javascript/Document.cpp |
@@ -494,9 +494,7 @@ FX_BOOL Document::removeField(IJS_Context* cc, |
++rcAnnot.right; |
++rcAnnot.top; |
- CFX_RectArray aRefresh; |
- aRefresh.Add(rcAnnot); |
- |
+ std::vector<CFX_FloatRect> aRefresh(1, rcAnnot); |
UnderlyingPageType* pPage = pWidget->GetUnderlyingPage(); |
ASSERT(pPage); |