summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-06-04 23:32:09 +0200
committerCaolán McNamara <caolanm@redhat.com>2013-06-06 08:22:43 +0000
commitfe86346c4900914da1e0ebf87f97a0044640490e (patch)
tree1bbff02f071c0d7068548dd70b0cb705394509ac /sw
parent5e5c8d34ed480c62455e24347a5858ea3b84d48c (diff)
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@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/acmplwrd.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/acmplwrd.cxx b/sw/source/core/doc/acmplwrd.cxx
index 3588290cc576..d59d84fb2494 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)
{