summaryrefslogtreecommitdiff
path: root/public/fpdf_text.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-01-10 17:33:06 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-01-10 17:33:06 +0000
commit50bd8fa8a9505487c1109e2645ef785ad73b1cbc (patch)
tree09853cec7a8cbc32e3f5f5222db654f31907b097 /public/fpdf_text.h
parent54f86140d436ce2f457dc588f5b2c183d4e94452 (diff)
downloadpdfium-50bd8fa8a9505487c1109e2645ef785ad73b1cbc.tar.xz
Change FPDFLink_GetRect() to return a boolean.
BUG=pdfium:858 Change-Id: Ib8effb64a1622feb2837f536b36b9e46847a2210 Reviewed-on: https://pdfium-review.googlesource.com/22631 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'public/fpdf_text.h')
-rw-r--r--public/fpdf_text.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/public/fpdf_text.h b/public/fpdf_text.h
index 4a76a7fcd0..bad66ad085 100644
--- a/public/fpdf_text.h
+++ b/public/fpdf_text.h
@@ -422,16 +422,18 @@ FPDF_EXPORT int FPDF_CALLCONV FPDFLink_CountRects(FPDF_PAGELINK link_page,
// bottom - Pointer to a double value receiving the rectangle
// bottom boundary.
// Return Value:
-// None. If |link_index| does not correspond to a valid link, then
-// |left|, |top|, |right|, and |bottom| remain unmodified.
+// On success, return TRUE and fill in |left|, |top|, |right|, and
+// |bottom|. If |link_index| does not correspond to a valid link, then
+// return FALSE, and |left|, |top|, |right|, and |bottom| remain
+// unmodified.
//
-FPDF_EXPORT void FPDF_CALLCONV FPDFLink_GetRect(FPDF_PAGELINK link_page,
- int link_index,
- int rect_index,
- double* left,
- double* top,
- double* right,
- double* bottom);
+FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFLink_GetRect(FPDF_PAGELINK link_page,
+ int link_index,
+ int rect_index,
+ double* left,
+ double* top,
+ double* right,
+ double* bottom);
// Function: FPDFLink_CloseWebLinks
// Release resources used by weblink feature.