Index: fpdfsdk/fpdftext.cpp |
diff --git a/fpdfsdk/fpdftext.cpp b/fpdfsdk/fpdftext.cpp |
index 4d521da8ed02397ccd9c73fafb98e1c65a6becea..1596fd258490f05441cc3b772094e2574fa6cb27 100644 |
--- a/fpdfsdk/fpdftext.cpp |
+++ b/fpdfsdk/fpdftext.cpp |
@@ -53,8 +53,9 @@ DLLEXPORT FPDF_TEXTPAGE STDCALL FPDFText_LoadPage(FPDF_PAGE page) { |
CPDF_ViewerPreferences viewRef(pPDFPage->m_pDocument); |
#endif // PDF_ENABLE_XFA |
- CPDF_TextPage* textpage = |
- new CPDF_TextPage(pPDFPage, viewRef.IsDirectionR2L()); |
+ CPDF_TextPage* textpage = new CPDF_TextPage( |
+ pPDFPage, viewRef.IsDirectionR2L() ? FPDFText_Direction::Right |
+ : FPDFText_Direction::Left); |
textpage->ParseTextPage(); |
return textpage; |
} |