| Index: fpdfsdk/javascript/Field.cpp
|
| diff --git a/fpdfsdk/javascript/Field.cpp b/fpdfsdk/javascript/Field.cpp
|
| index c1838332ba0d90e46964930599fbcf4ad6bd3c68..2a739deed06499e0b9b0bb3caf0aaee2f8c78e2d 100644
|
| --- a/fpdfsdk/javascript/Field.cpp
|
| +++ b/fpdfsdk/javascript/Field.cpp
|
| @@ -601,8 +601,7 @@ FX_BOOL Field::buttonFitBounds(IJS_Context* cc,
|
| if (!pFormControl)
|
| return FALSE;
|
|
|
| - CPDF_IconFit IconFit = pFormControl->GetIconFit();
|
| - vp << IconFit.GetFittingBounds();
|
| + vp << pFormControl->GetIconFit().GetFittingBounds();
|
| }
|
|
|
| return TRUE;
|
|
|