[Libreoffice-commits] core.git: sw/source
Michael Stahl
mstahl at redhat.com
Tue Jun 4 14:42:01 PDT 2013
sw/source/core/doc/acmplwrd.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 246d7e280ea8b7d1e27e14a6568d2a65cc8c9e7b
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
diff --git a/sw/source/core/doc/acmplwrd.cxx b/sw/source/core/doc/acmplwrd.cxx
index 4853ffc..2c865b4 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