diff options
-rw-r--r-- | fpdfsdk/formfiller/cffl_textfield.cpp | 2 | ||||
-rw-r--r-- | fpdfsdk/pwl/cpwl_edit.cpp | 4 | ||||
-rw-r--r-- | fpdfsdk/pwl/cpwl_edit.h | 5 |
3 files changed, 4 insertions, 7 deletions
diff --git a/fpdfsdk/formfiller/cffl_textfield.cpp b/fpdfsdk/formfiller/cffl_textfield.cpp index 7293d426bc..8c261f8f36 100644 --- a/fpdfsdk/formfiller/cffl_textfield.cpp +++ b/fpdfsdk/formfiller/cffl_textfield.cpp @@ -79,7 +79,7 @@ CPWL_Wnd* CFFL_TextField::NewPDFWindow(const CPWL_Wnd::CreateParams& cp) { if (nMaxLen > 0) { if (pWnd->HasFlag(PES_CHARARRAY)) { pWnd->SetCharArray(nMaxLen); - pWnd->SetAlignFormatV(PEAV_CENTER); + pWnd->SetAlignFormatVerticalCenter(); } else { pWnd->SetLimitChar(nMaxLen); } diff --git a/fpdfsdk/pwl/cpwl_edit.cpp b/fpdfsdk/pwl/cpwl_edit.cpp index 5e28a4aa02..c4ff2f4bd4 100644 --- a/fpdfsdk/pwl/cpwl_edit.cpp +++ b/fpdfsdk/pwl/cpwl_edit.cpp @@ -80,8 +80,8 @@ CFX_FloatRect CPWL_Edit::GetClientRect() const { return rcClient; } -void CPWL_Edit::SetAlignFormatV(PWL_EDIT_ALIGNFORMAT_V nFormat, bool bPaint) { - m_pEdit->SetAlignmentV((int32_t)nFormat, bPaint); +void CPWL_Edit::SetAlignFormatVerticalCenter() { + m_pEdit->SetAlignmentV(static_cast<int32_t>(PEAV_CENTER), true); } bool CPWL_Edit::CanSelectAll() const { diff --git a/fpdfsdk/pwl/cpwl_edit.h b/fpdfsdk/pwl/cpwl_edit.h index ce1d682dad..4a17de49d4 100644 --- a/fpdfsdk/pwl/cpwl_edit.h +++ b/fpdfsdk/pwl/cpwl_edit.h @@ -65,12 +65,9 @@ class CPWL_Edit : public CPWL_EditCtrl { void OnSetFocus() override; void OnKillFocus() override; - void SetAlignFormatV(PWL_EDIT_ALIGNFORMAT_V nFormat = PEAV_TOP, - bool bPaint = true); // 0:top 1:bottom 2:center - + void SetAlignFormatVerticalCenter(); void SetCharArray(int32_t nCharArray); void SetLimitChar(int32_t nLimitChar); - void SetCharSpace(float fCharSpace); bool CanSelectAll() const; |