summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorLaurent Godard <lgodard.libre@laposte.net>2015-08-19 16:15:16 +0200
committerCaolán McNamara <caolanm@redhat.com>2015-08-20 09:24:15 +0000
commit47d1cb09e6bcf8b044d15fff1be9b76fe72524b0 (patch)
tree5c38ebfb937d94ec2cc15ac238cc41d4a53d674d /basctl
parent930c7fb43aa97d9e64769d5d04f3cda1d76f9cd4 (diff)
avoid autocorrection misreplacing
takes the last token in case of chained "." instead of the first one to avoid aa.b. autocorrects (wrongly) to aaaa. Change-Id: Ibca68850282a0d3aec67ca518bdcbf1da676e155 Reviewed-on: https://gerrit.libreoffice.org/17858 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/baside2b.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx
index d4961d559481..ca9009c0c263 100644
--- a/basctl/source/basicide/baside2b.cxx
+++ b/basctl/source/basicide/baside2b.cxx
@@ -861,7 +861,7 @@ void EditorWindow::HandleCodeCompletion()
if( aVect.empty() )//nothing to do
return;
- OUString sBaseName = aVect[0];//variable name
+ OUString sBaseName = aVect[aVect.size()-1];//variable name
OUString sVarType = aCodeCompleteCache.GetVarType( sBaseName );
if( !sVarType.isEmpty() && CodeCompleteOptions::IsAutoCorrectOn() )