Index: fpdfsdk/src/javascript/Document.cpp |
diff --git a/fpdfsdk/src/javascript/Document.cpp b/fpdfsdk/src/javascript/Document.cpp |
index c49524d02ff4936316860012317a7ae2ad9f7f06..8b2b315ae89d8efc3ebc9a08e611d00e54571954 100644 |
--- a/fpdfsdk/src/javascript/Document.cpp |
+++ b/fpdfsdk/src/javascript/Document.cpp |
@@ -494,7 +494,7 @@ FX_BOOL Document::removeField(IJS_Context* cc, |
return TRUE; |
for (CPDFSDK_Widget* pWidget : widgets) { |
- CPDF_Rect rcAnnot = pWidget->GetRect(); |
+ CFX_FloatRect rcAnnot = pWidget->GetRect(); |
--rcAnnot.left; |
--rcAnnot.bottom; |
++rcAnnot.right; |