| Index: fpdfsdk/src/fpdftext.cpp
|
| diff --git a/fpdfsdk/src/fpdftext.cpp b/fpdfsdk/src/fpdftext.cpp
|
| index ed34ecdbf7e8e66c6c7ed97be32dd0291905e6b9..4659951c3c8a5eb900dbd80773c31b93b9b8c2c7 100644
|
| --- a/fpdfsdk/src/fpdftext.cpp
|
| +++ b/fpdfsdk/src/fpdftext.cpp
|
| @@ -33,6 +33,7 @@ DLLEXPORT int STDCALL FPDFText_CountChars(FPDF_TEXTPAGE text_page) {
|
| IPDF_TextPage* textpage = (IPDF_TextPage*)text_page;
|
| return textpage->CountChars();
|
| }
|
| +
|
| DLLEXPORT unsigned int STDCALL FPDFText_GetUnicode(FPDF_TEXTPAGE text_page,
|
| int index) {
|
| if (!text_page)
|
| @@ -43,9 +44,10 @@ DLLEXPORT unsigned int STDCALL FPDFText_GetUnicode(FPDF_TEXTPAGE text_page,
|
| return 0;
|
|
|
| FPDF_CHAR_INFO charinfo;
|
| - textpage->GetCharInfo(index, charinfo);
|
| + textpage->GetCharInfo(index, &charinfo);
|
| return charinfo.m_Unicode;
|
| }
|
| +
|
| DLLEXPORT double STDCALL FPDFText_GetFontSize(FPDF_TEXTPAGE text_page,
|
| int index) {
|
| if (!text_page)
|
| @@ -56,7 +58,7 @@ DLLEXPORT double STDCALL FPDFText_GetFontSize(FPDF_TEXTPAGE text_page,
|
| return 0;
|
|
|
| FPDF_CHAR_INFO charinfo;
|
| - textpage->GetCharInfo(index, charinfo);
|
| + textpage->GetCharInfo(index, &charinfo);
|
| return charinfo.m_FontSize;
|
| }
|
|
|
| @@ -73,7 +75,7 @@ DLLEXPORT void STDCALL FPDFText_GetCharBox(FPDF_TEXTPAGE text_page,
|
| if (index < 0 || index >= textpage->CountChars())
|
| return;
|
| FPDF_CHAR_INFO charinfo;
|
| - textpage->GetCharInfo(index, charinfo);
|
| + textpage->GetCharInfo(index, &charinfo);
|
| *left = charinfo.m_CharBox.left;
|
| *right = charinfo.m_CharBox.right;
|
| *bottom = charinfo.m_CharBox.bottom;
|
|
|