Index: core/src/fpdftext/fpdf_text_search.cpp |
diff --git a/core/src/fpdftext/fpdf_text_search.cpp b/core/src/fpdftext/fpdf_text_search.cpp |
index de38a7f540a64cdcfa01a71d8e95bc0c42ee8e47..b77f9428cb1f0729bf0fec4211fa8e5bd22d9fc1 100644 |
--- a/core/src/fpdftext/fpdf_text_search.cpp |
+++ b/core/src/fpdftext/fpdf_text_search.cpp |
@@ -303,7 +303,7 @@ void GetTextStream_Unicode(CFX_WideTextBuf& buffer, |
FX_POSITION pos = pPage->GetFirstObjectPosition(); |
while (pos) { |
CPDF_PageObject* pObject = pPage->GetNextObject(pos); |
- if (pObject && pObject->m_Type == PDFPAGE_TEXT) |
+ if (pObject && pObject->m_Type == CPDF_PageObject::TEXT) |
textstream.ProcessObject((CPDF_TextObject*)pObject, FALSE); |
} |
} |
@@ -321,7 +321,7 @@ CFX_WideString PDF_GetFirstTextLine_Unicode(CPDF_Document* pDoc, |
FX_POSITION pos = page.GetFirstObjectPosition(); |
while (pos) { |
CPDF_PageObject* pObject = page.GetNextObject(pos); |
- if (pObject->m_Type != PDFPAGE_TEXT) { |
+ if (pObject->m_Type != CPDF_PageObject::TEXT) { |
continue; |
} |
if (textstream.ProcessObject((CPDF_TextObject*)pObject, TRUE)) { |