...this value. As the comment says, this is the value we need to expose

in the preferences to solve bug #6760.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34641 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-06-09 21:04:57 +00:00
parent ae2f979947
commit 8f54bac004

View File

@ -3125,13 +3125,16 @@ void Paragraph::locateWord(pos_type & from, pos_type & to,
void Paragraph::collectWords()
{
// This is the value that needs to be exposed in the preferences
// to resolve bug #6760.
static int minlength = 6;
pos_type n = size();
for (pos_type pos = 0; pos < n; ++pos) {
if (isWordSeparator(pos))
continue;
pos_type from = pos;
locateWord(from, pos, WHOLE_WORD);
if (pos - from >= 6) {
if (pos - from >= minlength) {
docstring word = asString(from, pos, AS_STR_NONE);
FontList::const_iterator cit = d->fontlist_.fontIterator(pos);
if (cit == d->fontlist_.end())