| Index: core/src/fpdfdoc/doc_formfield.cpp
|
| diff --git a/core/src/fpdfdoc/doc_formfield.cpp b/core/src/fpdfdoc/doc_formfield.cpp
|
| index 09393bc30dbdf5706de883fcfdee83af43350bd5..4bce85e8319d0bb957a0451dbf367f38ae59a768 100644
|
| --- a/core/src/fpdfdoc/doc_formfield.cpp
|
| +++ b/core/src/fpdfdoc/doc_formfield.cpp
|
| @@ -110,15 +110,15 @@ FX_BOOL CPDF_FormField::ResetField(FX_BOOL bNotify) {
|
| case CPDF_FormField::RadioButton: {
|
| int iCount = CountControls();
|
| if (iCount) {
|
| + // TODO(weili): Check whether anything special needs to be done for
|
| + // unison field. Otherwise, merge these branches.
|
| if (PDF_FormField_IsUnison(this)) {
|
| for (int i = 0; i < iCount; i++) {
|
| CheckControl(i, GetControl(i)->IsDefaultChecked(), FALSE);
|
| }
|
| } else {
|
| for (int i = 0; i < iCount; i++) {
|
| - CPDF_FormControl* pControl = GetControl(i);
|
| - FX_BOOL bChecked = pControl->IsDefaultChecked();
|
| - CheckControl(i, bChecked, FALSE);
|
| + CheckControl(i, GetControl(i)->IsDefaultChecked(), FALSE);
|
| }
|
| }
|
| }
|
|
|