| Index: fpdfsdk/formfiller/cffl_radiobutton.cpp
|
| diff --git a/fpdfsdk/formfiller/cffl_radiobutton.cpp b/fpdfsdk/formfiller/cffl_radiobutton.cpp
|
| index 17573fd625bc420715960423e9488ccfee36f9d5..aa035a13546ef1a7853040c99ef7849b21a7ecde 100644
|
| --- a/fpdfsdk/formfiller/cffl_radiobutton.cpp
|
| +++ b/fpdfsdk/formfiller/cffl_radiobutton.cpp
|
| @@ -51,11 +51,12 @@ FX_BOOL CFFL_RadioButton::OnChar(CPDFSDK_Annot* pAnnot,
|
|
|
| FX_BOOL bReset = FALSE;
|
| FX_BOOL bExit = FALSE;
|
| - m_pEnv->GetInteractiveFormFiller()->OnButtonUp(m_pWidget, pPageView,
|
| + CPDFSDK_Annot::ObservedPtr pObserved(m_pWidget);
|
| + m_pEnv->GetInteractiveFormFiller()->OnButtonUp(pObserved, pPageView,
|
| bReset, bExit, nFlags);
|
| - if (bReset)
|
| - return TRUE;
|
| - if (bExit)
|
| + if (!pObserved)
|
| + bExit = TRUE;
|
| + if (bReset || bExit)
|
| return TRUE;
|
|
|
| CFFL_FormFiller::OnChar(pAnnot, nChar, nFlags);
|
|
|