| 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 55f736ee9c48499eef30f098feec585bdfe5a806..90b932cd4c1da0e0de1c5c474bd02ebdf2aeb61d 100644
|
| --- a/core/src/fpdftext/fpdf_text_int.cpp
|
| +++ b/core/src/fpdftext/fpdf_text_int.cpp
|
| @@ -748,16 +748,10 @@ int32_t CPDF_TextPage::FindTextlineFlowDirection() {
|
| }
|
| const int32_t nPageWidth = (int32_t)((CPDF_Page*)m_pPage)->GetPageWidth();
|
| const int32_t nPageHeight = (int32_t)((CPDF_Page*)m_pPage)->GetPageHeight();
|
| - CFX_ByteArray nHorizontalMask;
|
| - if (!nHorizontalMask.SetSize(nPageWidth)) {
|
| - return -1;
|
| - }
|
| - uint8_t* pDataH = nHorizontalMask.GetData();
|
| - CFX_ByteArray nVerticalMask;
|
| - if (!nVerticalMask.SetSize(nPageHeight)) {
|
| - return -1;
|
| - }
|
| - uint8_t* pDataV = nVerticalMask.GetData();
|
| + std::vector<uint8_t> nHorizontalMask(nPageWidth);
|
| + std::vector<uint8_t> nVerticalMask(nPageHeight);
|
| + uint8_t* pDataH = nHorizontalMask.data();
|
| + uint8_t* pDataV = nVerticalMask.data();
|
| int32_t index = 0;
|
| FX_FLOAT fLineHeight = 0.0f;
|
| CPDF_PageObject* pPageObj = NULL;
|
|
|