[Libreoffice-commits] core.git: Branch 'distro/suse/suse-4.0' - sw/source

Michael Stahl mstahl at redhat.com
Wed Jun 12 14:04:36 PDT 2013


 sw/source/core/doc/acmplwrd.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 00d7d0d71cea36ec8fddcdab2cc3ffc449d5d408
Author: Michael Stahl <mstahl at redhat.com>
Date:   Tue Jun 4 23:32:09 2013 +0200

    fdo#61923: sw: word completion: do not add trailing '.'
    
    SwAutoCompleteWord::InsertWord(): use the computed nWrdLen to cut off
    trailing periods.
    
    (regression from d602a3b280fcc1cf16660d8719cd8eb8797dd2ad)
    
    Change-Id: I9f4ace62f8d9e7d233e7e210f476856d7841d869
    (cherry picked from commit 246d7e280ea8b7d1e27e14a6568d2a65cc8c9e7b)
    Reviewed-on: https://gerrit.libreoffice.org/4159
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/core/doc/acmplwrd.cxx b/sw/source/core/doc/acmplwrd.cxx
index 3588290..d59d84f 100644
--- a/sw/source/core/doc/acmplwrd.cxx
+++ b/sw/source/core/doc/acmplwrd.cxx
@@ -265,7 +265,7 @@ bool SwAutoCompleteWord::InsertWord( const String& rWord, SwDoc& rDoc )
         std::pair<editeng::SortedAutoCompleteStrings::const_iterator, bool>
             aInsPair = m_WordList.insert(pNew);
 
-        m_LookupTree->insert( OUString(aNewWord) );
+        m_LookupTree->insert( OUString(aNewWord).copy(0, nWrdLen) );
 
         if (aInsPair.second)
         {


More information about the Libreoffice-commits mailing list