| Index: xfa/fxfa/app/xfa_ffcheckbutton.cpp
|
| diff --git a/xfa/fxfa/app/xfa_ffcheckbutton.cpp b/xfa/fxfa/app/xfa_ffcheckbutton.cpp
|
| index dab6b2cde0555fe412e8e4dec3389c964877c658..47b628cdec9ad3af1eec8bd5f5432ee63daa935f 100644
|
| --- a/xfa/fxfa/app/xfa_ffcheckbutton.cpp
|
| +++ b/xfa/fxfa/app/xfa_ffcheckbutton.cpp
|
| @@ -277,10 +277,12 @@ bool CXFA_FFCheckButton::IsDataChanged() {
|
| }
|
| void CXFA_FFCheckButton::SetFWLCheckState(XFA_CHECKSTATE eCheckState) {
|
| if (eCheckState == XFA_CHECKSTATE_Neutral) {
|
| - m_pNormalWidget->SetStates(FWL_STATE_CKB_Neutral, true);
|
| + m_pNormalWidget->SetStates(FWL_STATE_CKB_Neutral);
|
| } else {
|
| - m_pNormalWidget->SetStates(FWL_STATE_CKB_Checked,
|
| - eCheckState == XFA_CHECKSTATE_On);
|
| + if (eCheckState == XFA_CHECKSTATE_On)
|
| + m_pNormalWidget->SetStates(FWL_STATE_CKB_Checked);
|
| + else
|
| + m_pNormalWidget->RemoveStates(FWL_STATE_CKB_Checked);
|
| }
|
| }
|
| bool CXFA_FFCheckButton::UpdateFWLData() {
|
|
|