diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-07-21 15:33:55 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-07-21 18:24:25 +0200 |
commit | 50f2a32b70090be010a702650990d346c5758a2a (patch) | |
tree | a5291fbaa4ded77f9800eca49754960fb6c8ce37 | |
parent | ed714bd7ca70979340292b9d7a4b99b3a14db64c (diff) |
replace all the text, not the selection
we want to restore the cursor to as close to the current selection
as possible, not just to replace a selected region
Change-Id: I1f1d77e69d92772d620656799347312a556ccebd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99067
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | dbaccess/source/ui/control/SqlNameEdit.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/ui/control/SqlNameEdit.cxx b/dbaccess/source/ui/control/SqlNameEdit.cxx index 2b280a82c325..c24e9fd3cfaf 100644 --- a/dbaccess/source/ui/control/SqlNameEdit.cxx +++ b/dbaccess/source/ui/control/SqlNameEdit.cxx @@ -73,8 +73,8 @@ namespace dbaui int nStartPos, nEndPos; m_xEntry->get_selection_bounds(nStartPos, nEndPos); int nMin = std::min(nStartPos, nEndPos); + m_xEntry->set_text(sCorrected); m_xEntry->select_region(nMin, nMin); - m_xEntry->replace_selection(sCorrected); m_xEntry->save_value(); } |