Index: fpdfsdk/cpdfsdk_widget.cpp |
diff --git a/fpdfsdk/cpdfsdk_widget.cpp b/fpdfsdk/cpdfsdk_widget.cpp |
index a36014c924f0dddf400b412dde1a066b506ea0be..dcccf0ce1aa1c1434e687f6726c7d44eb5c0cc15 100644 |
--- a/fpdfsdk/cpdfsdk_widget.cpp |
+++ b/fpdfsdk/cpdfsdk_widget.cpp |
@@ -1975,8 +1975,7 @@ int32_t CPDFSDK_Widget::GetValueAge() const { |
FX_BOOL CPDFSDK_Widget::HitTest(FX_FLOAT pageX, FX_FLOAT pageY) { |
CPDF_Annot* pAnnot = GetPDFAnnot(); |
- CFX_FloatRect annotRect; |
- pAnnot->GetRect(annotRect); |
+ CFX_FloatRect annotRect = pAnnot->GetRect(); |
if (!annotRect.Contains(pageX, pageY)) |
return FALSE; |