diff options
Diffstat (limited to 'core/src/fpdftext')
-rw-r--r-- | core/src/fpdftext/fpdf_text_int.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/src/fpdftext/fpdf_text_int.cpp b/core/src/fpdftext/fpdf_text_int.cpp index 7858fa0bf6..8e2eae1251 100644 --- a/core/src/fpdftext/fpdf_text_int.cpp +++ b/core/src/fpdftext/fpdf_text_int.cpp @@ -1552,8 +1552,7 @@ int32_t CPDF_TextPage::GetTextObjectWritingMode( if (dX <= 0.0001f && dY <= 0.0001f) { return -1; } - CFX_VectorF v; - v.Set(dX, dY); + CFX_VectorF v(dX, dY); v.Normalize(); if (v.y <= 0.0872f) { return v.x <= 0.0872f ? m_TextlineDir : 0; |