[Libreoffice-commits] core.git: basctl/source

Laurent Godard lgodard.libre at laposte.net
Thu Aug 20 02:24:40 PDT 2015


 basctl/source/basicide/baside2b.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 47d1cb09e6bcf8b044d15fff1be9b76fe72524b0
Author: Laurent Godard <lgodard.libre at laposte.net>
Date:   Wed Aug 19 16:15:16 2015 +0200

    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 at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx
index d4961d5..ca9009c 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() )


More information about the Libreoffice-commits mailing list