From 50bd8fa8a9505487c1109e2645ef785ad73b1cbc Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 10 Jan 2018 17:33:06 +0000 Subject: Change FPDFLink_GetRect() to return a boolean. BUG=pdfium:858 Change-Id: Ib8effb64a1622feb2837f536b36b9e46847a2210 Reviewed-on: https://pdfium-review.googlesource.com/22631 Reviewed-by: dsinclair Commit-Queue: Lei Zhang --- public/fpdf_text.h | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'public') 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. -- cgit v1.2.3