From 8f54bac0045fbd24e1971c9aa161328cdb218e8d Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Wed, 9 Jun 2010 21:04:57 +0000 Subject: [PATCH] ...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 --- src/Paragraph.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 71c6c5b8fd..5ec2adfeef 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -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())