dbaccess/source/ui/control/SqlNameEdit.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 17ab82e522faad75bdbcea1ab9a16cc9953c9d79 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Jul 21 15:33:55 2020 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue Jul 21 18:16:41 2020 +0200 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/+/99152 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> 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(); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits