From 241752f3c188ed992a26618361e55b1d7f2be7cc Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 11 Jan 2018 14:34:06 +0000 Subject: Change FPDFText_GetCharBox() to return a boolean. BUG=pdfium:858 Change-Id: Id8b6c032d60894eaf14ae0ba52098a60b2485fca Reviewed-on: https://pdfium-review.googlesource.com/22731 Commit-Queue: dsinclair Reviewed-by: dsinclair --- public/fpdf_text.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'public') diff --git a/public/fpdf_text.h b/public/fpdf_text.h index 90ccaf76ae..043dc169c9 100644 --- a/public/fpdf_text.h +++ b/public/fpdf_text.h @@ -102,16 +102,18 @@ FPDF_EXPORT double FPDF_CALLCONV FPDFText_GetFontSize(FPDF_TEXTPAGE text_page, // top - Pointer to a double number receiving top position of // the character box. // Return Value: -// None. +// On success, return TRUE and fill in |left|, |right|, |bottom|, and +// |top|. If |text_page| is invalid, or if |index| is out of bounds, +// then return FALSE, and the out parameters remain unmodified. // Comments: // All positions are measured in PDF "user space". // -FPDF_EXPORT void FPDF_CALLCONV FPDFText_GetCharBox(FPDF_TEXTPAGE text_page, - int index, - double* left, - double* right, - double* bottom, - double* top); +FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFText_GetCharBox(FPDF_TEXTPAGE text_page, + int index, + double* left, + double* right, + double* bottom, + double* top); // Function: FPDFText_GetCharOrigin // Get origin of a particular character. -- cgit v1.2.3