summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdftext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/fpdftext.cpp')
-rw-r--r--fpdfsdk/fpdftext.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/fpdfsdk/fpdftext.cpp b/fpdfsdk/fpdftext.cpp
index 4d521da8ed..1596fd2584 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;
}