summaryrefslogtreecommitdiff
path: root/fpdfsdk/pdfwindow/cpwl_edit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/pdfwindow/cpwl_edit.cpp')
-rw-r--r--fpdfsdk/pdfwindow/cpwl_edit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/pdfwindow/cpwl_edit.cpp b/fpdfsdk/pdfwindow/cpwl_edit.cpp
index ac1cfa94ba..89361b5835 100644
--- a/fpdfsdk/pdfwindow/cpwl_edit.cpp
+++ b/fpdfsdk/pdfwindow/cpwl_edit.cpp
@@ -136,7 +136,7 @@ bool CPWL_Edit::CanCut() const {
void CPWL_Edit::CutText() {
if (!CanCut())
return;
- m_pEdit->Clear();
+ m_pEdit->ClearSelection();
}
void CPWL_Edit::OnCreated() {
@@ -430,7 +430,7 @@ void CPWL_Edit::SetLimitChar(int32_t nLimitChar) {
}
void CPWL_Edit::ReplaceSel(const CFX_WideString& wsText) {
- m_pEdit->Clear();
+ m_pEdit->ClearSelection();
m_pEdit->InsertText(wsText, FX_CHARSET_Default);
}