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:37:55 +0200 |
commit | 246d7e280ea8b7d1e27e14a6568d2a65cc8c9e7b (patch) | |
tree | 69685bd3e54d2c9a3094f705197100cdb79d2f98 /sw/source/core | |
parent | df5a73a9e3d44dd8a0af8c61552cdc14ca83bf2d (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
Diffstat (limited to 'sw/source/core')
-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) { |