diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-06-04 23:32:09 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-06-04 23:43:13 +0200 |
commit | 452b2172c37537aa059d08307b4592adecc20960 (patch) | |
tree | 602fd715a182c059046452bed2f8734695e2e501 | |
parent | 4877a2304334909e8597b719e98144a1140e23ee (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)
-rw-r--r-- | sw/source/core/doc/acmplwrd.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/acmplwrd.cxx b/sw/source/core/doc/acmplwrd.cxx index 4853ffc9a342..2c865b4590e2 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) { |