| Index: fpdfsdk/fsdk_mgr.cpp
|
| diff --git a/fpdfsdk/fsdk_mgr.cpp b/fpdfsdk/fsdk_mgr.cpp
|
| index 24efd4077d74b2ab8ffc0c74f63317e2152762eb..9017e20b3277f0782ada51639867141ef31249ba 100644
|
| --- a/fpdfsdk/fsdk_mgr.cpp
|
| +++ b/fpdfsdk/fsdk_mgr.cpp
|
| @@ -576,8 +576,7 @@ void CPDFSDK_PageView::PageView_OnDraw(CFX_RenderDevice* pDevice,
|
| const CPDF_Annot* CPDFSDK_PageView::GetPDFAnnotAtPoint(FX_FLOAT pageX,
|
| FX_FLOAT pageY) {
|
| for (const auto& pAnnot : m_pAnnotList->All()) {
|
| - CFX_FloatRect annotRect;
|
| - pAnnot->GetRect(annotRect);
|
| + CFX_FloatRect annotRect = pAnnot->GetRect();
|
| if (annotRect.Contains(pageX, pageY))
|
| return pAnnot.get();
|
| }
|
| @@ -588,8 +587,7 @@ const CPDF_Annot* CPDFSDK_PageView::GetPDFWidgetAtPoint(FX_FLOAT pageX,
|
| FX_FLOAT pageY) {
|
| for (const auto& pAnnot : m_pAnnotList->All()) {
|
| if (pAnnot->GetSubType() == "Widget") {
|
| - CFX_FloatRect annotRect;
|
| - pAnnot->GetRect(annotRect);
|
| + CFX_FloatRect annotRect = pAnnot->GetRect();
|
| if (annotRect.Contains(pageX, pageY))
|
| return pAnnot.get();
|
| }
|
|
|