| Index: core/src/fpdftext/fpdf_text_int.cpp
|
| diff --git a/core/src/fpdftext/fpdf_text_int.cpp b/core/src/fpdftext/fpdf_text_int.cpp
|
| index b343c1d566f53aa45087d5350a6e4d46f1d8e112..e427a1d2a8c74b64a5fe2463d3058b4a6fb4a310 100644
|
| --- a/core/src/fpdftext/fpdf_text_int.cpp
|
| +++ b/core/src/fpdftext/fpdf_text_int.cpp
|
| @@ -2614,9 +2614,7 @@ void CPDF_LinkExtract::parserLink() {
|
| }
|
| if (nCount > 5 &&
|
| (CheckWebLink(strBeCheck) || CheckMailLink(strBeCheck))) {
|
| - if (!AppendToLinkList(start, nCount, strBeCheck)) {
|
| - break;
|
| - }
|
| + AppendToLinkList(start, nCount, strBeCheck);
|
| }
|
| }
|
| start = ++pos;
|
| @@ -2730,16 +2728,17 @@ FX_BOOL CPDF_LinkExtract::CheckMailLink(CFX_WideString& str) {
|
| }
|
| return TRUE;
|
| }
|
| -FX_BOOL CPDF_LinkExtract::AppendToLinkList(int start,
|
| - int count,
|
| - const CFX_WideString& strUrl) {
|
| +
|
| +void CPDF_LinkExtract::AppendToLinkList(int start,
|
| + int count,
|
| + const CFX_WideString& strUrl) {
|
| CPDF_LinkExt* linkInfo = new CPDF_LinkExt;
|
| linkInfo->m_strUrl = strUrl;
|
| linkInfo->m_Start = start;
|
| linkInfo->m_Count = count;
|
| m_LinkList.Add(linkInfo);
|
| - return TRUE;
|
| }
|
| +
|
| CFX_WideString CPDF_LinkExtract::GetURL(int index) const {
|
| if (!m_IsParserd || index < 0 || index >= m_LinkList.GetSize()) {
|
| return L"";
|
|
|