diff options
Diffstat (limited to 'fpdfsdk/cpdfsdk_widgethandler.cpp')
-rw-r--r-- | fpdfsdk/cpdfsdk_widgethandler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fpdfsdk/cpdfsdk_widgethandler.cpp b/fpdfsdk/cpdfsdk_widgethandler.cpp index 1c802a3ba7..f5cd802001 100644 --- a/fpdfsdk/cpdfsdk_widgethandler.cpp +++ b/fpdfsdk/cpdfsdk_widgethandler.cpp @@ -287,9 +287,10 @@ CFX_WideString CPDFSDK_WidgetHandler::GetSelectedText(CPDFSDK_Annot* pAnnot) { return CFX_WideString(); } -void CPDFSDK_WidgetHandler::DeleteSelectedText(CPDFSDK_Annot* pAnnot) { +void CPDFSDK_WidgetHandler::ReplaceSelection(CPDFSDK_Annot* pAnnot, + const CFX_WideString& text) { if (!pAnnot->IsSignatureWidget() && m_pFormFiller) - m_pFormFiller->DeleteSelectedText(pAnnot); + m_pFormFiller->ReplaceSelection(pAnnot, text); } bool CPDFSDK_WidgetHandler::HitTest(CPDFSDK_PageView* pPageView, |