From 47d1cb09e6bcf8b044d15fff1be9b76fe72524b0 Mon Sep 17 00:00:00 2001 From: Laurent Godard Date: Wed, 19 Aug 2015 16:15:16 +0200 Subject: avoid autocorrection misreplacing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- basctl/source/basicide/baside2b.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'basctl/source') 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() ) -- cgit