Index: fpdfsdk/fsdk_baseform.cpp |
diff --git a/fpdfsdk/fsdk_baseform.cpp b/fpdfsdk/fsdk_baseform.cpp |
index ea21511b8e7761957c6e9bd32fff3829e2288524..0f1a0ad0d182956c16a4aa3e461e9a0eeef9a937 100644 |
--- a/fpdfsdk/fsdk_baseform.cpp |
+++ b/fpdfsdk/fsdk_baseform.cpp |
@@ -267,7 +267,7 @@ void CPDFSDK_Widget::Synchronize(FX_BOOL bSynchronizeElse) { |
CPDF_FormControl* pFormCtrl = GetFormControl(); |
XFA_CHECKSTATE eCheckState = |
pFormCtrl->IsChecked() ? XFA_CHECKSTATE_On : XFA_CHECKSTATE_Off; |
- pWidgetAcc->SetCheckState(eCheckState); |
+ pWidgetAcc->SetCheckState(eCheckState, true); |
} break; |
case FIELDTYPE_TEXTFIELD: |
pWidgetAcc->SetValue(pFormField->GetValue(), XFA_VALUEPICTURE_Edit); |
@@ -278,7 +278,7 @@ void CPDFSDK_Widget::Synchronize(FX_BOOL bSynchronizeElse) { |
for (int i = 0, sz = pFormField->CountSelectedItems(); i < sz; i++) { |
int nIndex = pFormField->GetSelectedIndex(i); |
if (nIndex > -1 && nIndex < pWidgetAcc->CountChoiceListItems()) |
- pWidgetAcc->SetItemState(nIndex, TRUE, FALSE); |
+ pWidgetAcc->SetItemState(nIndex, TRUE, false, FALSE, TRUE); |
} |
} break; |
case FIELDTYPE_COMBOBOX: { |
@@ -287,7 +287,7 @@ void CPDFSDK_Widget::Synchronize(FX_BOOL bSynchronizeElse) { |
for (int i = 0, sz = pFormField->CountSelectedItems(); i < sz; i++) { |
int nIndex = pFormField->GetSelectedIndex(i); |
if (nIndex > -1 && nIndex < pWidgetAcc->CountChoiceListItems()) |
- pWidgetAcc->SetItemState(nIndex, TRUE, FALSE); |
+ pWidgetAcc->SetItemState(nIndex, TRUE, false, FALSE, TRUE); |
} |
} |