[Libreoffice-commits] core.git: Branch 'libreoffice-7-0' - dbaccess/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jul 21 16:25:01 UTC 2020
dbaccess/source/ui/control/SqlNameEdit.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 50f2a32b70090be010a702650990d346c5758a2a
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Jul 21 15:33:55 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Jul 21 18:24:25 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/+/99067
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at 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();
}
More information about the Libreoffice-commits
mailing list