diff options
Diffstat (limited to 'fpdfsdk/cpdfsdk_widget.cpp')
-rw-r--r-- | fpdfsdk/cpdfsdk_widget.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/fpdfsdk/cpdfsdk_widget.cpp b/fpdfsdk/cpdfsdk_widget.cpp index 840c75a3b0..40e04e8772 100644 --- a/fpdfsdk/cpdfsdk_widget.cpp +++ b/fpdfsdk/cpdfsdk_widget.cpp @@ -236,13 +236,6 @@ bool CPDFSDK_Widget::OnXFAAAction(PDFSDK_XFAAActionType eXFAAAT, param.m_wsFullText = data->sValue; param.m_bKeyDown = data->bKeyDown; param.m_bModifier = data->bModifier; - param.m_wsNewText = data->sValue; - if (data->nSelEnd > data->nSelStart) - param.m_wsNewText.Delete(data->nSelStart, data->nSelEnd - data->nSelStart); - - for (const auto& c : data->sChange) - param.m_wsNewText.Insert(data->nSelStart, c); - param.m_wsPrevText = data->sValue; if ((eEventType == XFA_EVENT_Click || eEventType == XFA_EVENT_Change) && GetFieldType() == FormFieldType::kRadioButton) { @@ -834,12 +827,6 @@ bool CPDFSDK_Widget::OnAAction(CPDF_AAction::AActionType type, param.m_wsFullText = data->sValue; param.m_bKeyDown = data->bKeyDown; param.m_bModifier = data->bModifier; - param.m_wsNewText = data->sValue; - if (data->nSelEnd > data->nSelStart) - param.m_wsNewText.Delete(data->nSelStart, - data->nSelEnd - data->nSelStart); - for (int i = data->sChange.GetLength() - 1; i >= 0; i--) - param.m_wsNewText.Insert(data->nSelStart, data->sChange[i]); param.m_wsPrevText = data->sValue; int32_t nRet = XFA_EVENTERROR_NotExist; |