| 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 906554dde2eaac5bfa6a26008dfb3e87c3ec3246..99f36a08585e1002e74ff4f82eda544f6899e8d0 100644
|
| --- a/core/src/fpdftext/fpdf_text_int.cpp
|
| +++ b/core/src/fpdftext/fpdf_text_int.cpp
|
| @@ -1286,7 +1286,7 @@ int32_t CPDF_TextPage::PreMarkedContent(PDFTEXT_Obj Obj) {
|
| for (n = 0; n < nContentMark; n++) {
|
| CPDF_ContentMarkItem& item = pMarkData->GetItem(n);
|
| CFX_ByteString tagStr = (CFX_ByteString)item.GetName();
|
| - pDict = (CPDF_Dictionary*)item.GetParam();
|
| + pDict = ToDictionary(static_cast<CPDF_Object*>(item.GetParam()));
|
| CPDF_String* temp =
|
| (CPDF_String*)(pDict ? pDict->GetElement(FX_BSTRC("ActualText"))
|
| : NULL);
|
| @@ -1357,7 +1357,7 @@ void CPDF_TextPage::ProcessMarkedContent(PDFTEXT_Obj Obj) {
|
| for (n = 0; n < nContentMark; n++) {
|
| CPDF_ContentMarkItem& item = pMarkData->GetItem(n);
|
| CFX_ByteString tagStr = (CFX_ByteString)item.GetName();
|
| - pDict = (CPDF_Dictionary*)item.GetParam();
|
| + pDict = ToDictionary(static_cast<CPDF_Object*>(item.GetParam()));
|
| CPDF_String* temp =
|
| (CPDF_String*)(pDict ? pDict->GetElement(FX_BSTRC("ActualText"))
|
| : NULL);
|
|
|