From 9e9bab6fe80b41f18c45f52db7ad61503124cbf8 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 9 Mar 2017 16:59:12 -0500 Subject: Cleanup TXTLINEALIGNMENT defines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This Cl replaces the FX_TXTLINEALIGNMENT_ defines with an enum and cleans up various usages. Change-Id: I5ff20f046322e5cd39a7d2abbd8735eac81e8c69 Reviewed-on: https://pdfium-review.googlesource.com/2941 Commit-Queue: dsinclair Reviewed-by: Nicolás Peña --- xfa/fde/tto/fde_textout.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xfa/fde/tto/fde_textout.cpp') diff --git a/xfa/fde/tto/fde_textout.cpp b/xfa/fde/tto/fde_textout.cpp index 93be50d34a..0a92bd53d7 100644 --- a/xfa/fde/tto/fde_textout.cpp +++ b/xfa/fde/tto/fde_textout.cpp @@ -107,15 +107,15 @@ void CFDE_TextOut::SetAlignment(int32_t iAlignment) { case FDE_TTOALIGNMENT_TopCenter: case FDE_TTOALIGNMENT_Center: case FDE_TTOALIGNMENT_BottomCenter: - m_iTxtBkAlignment = FX_TXTLINEALIGNMENT_Center; + m_iTxtBkAlignment = CFX_TxtLineAlignment_Center; break; case FDE_TTOALIGNMENT_TopRight: case FDE_TTOALIGNMENT_CenterRight: case FDE_TTOALIGNMENT_BottomRight: - m_iTxtBkAlignment = FX_TXTLINEALIGNMENT_Right; + m_iTxtBkAlignment = CFX_TxtLineAlignment_Right; break; default: - m_iTxtBkAlignment = FX_TXTLINEALIGNMENT_Left; + m_iTxtBkAlignment = CFX_TxtLineAlignment_Left; break; } m_pTxtBreak->SetAlignment(m_iTxtBkAlignment); -- cgit v1.2.3