Index: fpdfsdk/src/fpdfformfill.cpp |
diff --git a/fpdfsdk/src/fpdfformfill.cpp b/fpdfsdk/src/fpdfformfill.cpp |
index 0fb32919e1f34cfb687a32f7782b57556a35d1a9..ea94925d63e90b3ade0ebed4f04dc0d47d7e1eb4 100644 |
--- a/fpdfsdk/src/fpdfformfill.cpp |
+++ b/fpdfsdk/src/fpdfformfill.cpp |
@@ -71,7 +71,8 @@ DLLEXPORT int STDCALL FPDPage_HasFormFieldAtPoint(FPDF_FORMHANDLE hHandle, FPDF_ |
rcWidget.bottom -= 1.0f; |
rcWidget.top += 1.0f; |
- if (rcWidget.Contains(page_x, page_y)) { |
+ if (rcWidget.Contains(static_cast<FX_FLOAT>(page_x), |
+ static_cast<FX_FLOAT>(page_y))) { |
pWidgetIterator->Release(); |
return FPDF_FORMFIELD_XFA; |
} |