Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Unified Diff: fpdfsdk/fsdk_baseform.cpp

Issue 2017863002: Fix MSVC C4800 build warnings. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: put C4800 back Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | xfa/fwl/core/fwl_formimp.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
}
« no previous file with comments | « no previous file | xfa/fwl/core/fwl_formimp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698