diff options
Diffstat (limited to 'fpdfsdk/cpdfsdk_baannothandler.cpp')
-rw-r--r-- | fpdfsdk/cpdfsdk_baannothandler.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fpdfsdk/cpdfsdk_baannothandler.cpp b/fpdfsdk/cpdfsdk_baannothandler.cpp index 5cabef994a..617d88fd41 100644 --- a/fpdfsdk/cpdfsdk_baannothandler.cpp +++ b/fpdfsdk/cpdfsdk_baannothandler.cpp @@ -28,6 +28,11 @@ void UpdateAnnotRects(CPDFSDK_PageView* pPageView, CPDFSDK_BAAnnot* pBAAnnot) { rects.push_back(pBAAnnot->GetRect()); if (CPDF_Annot* pPopupAnnot = pBAAnnot->GetPDFPopupAnnot()) rects.push_back(pPopupAnnot->GetRect()); + + // Make the rects round up to avoid https://crbug.com/662804 + for (CFX_FloatRect& rect : rects) + rect.Inflate(1, 1); + pPageView->UpdateRects(rects); } |