Index: fpdfsdk/cpdfsdk_baannothandler.cpp |
diff --git a/fpdfsdk/cpdfsdk_baannothandler.cpp b/fpdfsdk/cpdfsdk_baannothandler.cpp |
index 5cabef994a153fd4e6760b8714a7f100c46ab663..617d88fd416f29bec075e71c9b7f6d5b0d306ec8 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); |
} |