diff --git a/core/textpage.cpp b/core/textpage.cpp index fd656a9e0..eb242b170 100644 --- a/core/textpage.cpp +++ b/core/textpage.cpp @@ -1125,7 +1125,7 @@ QMap TextPagePrivate::makeWordFromCharacters() */ QMap word_chars_map; - const TextList tmpList = duplicateWordList(); + const TextList tmpList = m_words; TextList newList; TextList::ConstIterator it = tmpList.begin(), itEnd = tmpList.end(), tmpIt; @@ -1227,7 +1227,6 @@ QMap TextPagePrivate::makeWordFromCharacters() if(it == itEnd) break; } - qDeleteAll(tmpList); setWordList(newList); return word_chars_map;