diff options
Diffstat (limited to 'fpdfsdk/cpdfsdk_pageview.cpp')
-rw-r--r-- | fpdfsdk/cpdfsdk_pageview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/cpdfsdk_pageview.cpp b/fpdfsdk/cpdfsdk_pageview.cpp index 84a60fa42f..209e8de482 100644 --- a/fpdfsdk/cpdfsdk_pageview.cpp +++ b/fpdfsdk/cpdfsdk_pageview.cpp @@ -253,11 +253,11 @@ CFX_WideString CPDFSDK_PageView::GetSelectedText() { return CFX_WideString(); } -void CPDFSDK_PageView::DeleteSelectedText() { +void CPDFSDK_PageView::ReplaceSelection(const CFX_WideString& text) { if (CPDFSDK_Annot* pAnnot = GetFocusAnnot()) { CPDFSDK_AnnotHandlerMgr* pAnnotHandlerMgr = m_pFormFillEnv->GetAnnotHandlerMgr(); - pAnnotHandlerMgr->Annot_DeleteSelectedText(pAnnot); + pAnnotHandlerMgr->Annot_ReplaceSelection(pAnnot, text); } } |