sw/source/core/doc/acmplwrd.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit f073f36a7d58fab9e6415cf8419f8f04dc9009b2 Author: Michael Stahl <[email protected]> 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 <[email protected]> Tested-by: Caolán McNamara <[email protected]> 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) {
_______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
