summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfdoc.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-10-31 13:32:17 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-10-31 13:32:17 +0000
commit367e7de07ec33ad045500a04dc2a180390937b27 (patch)
tree1b286d0be1c9e4db933d31c22aceb92aac7f3f7b /fpdfsdk/fpdfdoc.cpp
parent8aa3002c673f36909560575514b9a9474e5e66bf (diff)
downloadpdfium-367e7de07ec33ad045500a04dc2a180390937b27.tar.xz
Add FS_RECTF conversion functions.
Change-Id: I87fb109fdd121716a170df15c4762496c1ccb88c Reviewed-on: https://pdfium-review.googlesource.com/17210 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdfdoc.cpp')
-rw-r--r--fpdfsdk/fpdfdoc.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/fpdfsdk/fpdfdoc.cpp b/fpdfsdk/fpdfdoc.cpp
index c536c73254..4d2942fb31 100644
--- a/fpdfsdk/fpdfdoc.cpp
+++ b/fpdfsdk/fpdfdoc.cpp
@@ -329,11 +329,7 @@ FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFLink_GetAnnotRect(FPDF_LINK linkAnnot,
return false;
CPDF_Dictionary* pAnnotDict =
ToDictionary(static_cast<CPDF_Object*>(linkAnnot));
- CFX_FloatRect rt = pAnnotDict->GetRectFor("Rect");
- rect->left = rt.left;
- rect->bottom = rt.bottom;
- rect->right = rt.right;
- rect->top = rt.top;
+ FSRECTFFromCFXFloatRect(pAnnotDict->GetRectFor("Rect"), rect);
return true;
}