TextMetrics::drawParagraph(): really check the whole row and not only the first word.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30971
a592a061-630c-0410-9148-
cb99ea01b6c8
break;
}
- if (lyxrc.spellcheck_continuously && cur.inTexted())
- // Take this opportunity to spellcheck current word.
- cur.paragraph().isMisspelled(cur.pos());
-
needsUpdate |= (cur.pos() != cur.lastpos()) && cur.selection();
// FIXME: The cursor flag is reset two lines below
static docstring_list suggestions;
pos_type from = row.pos();
pos_type to = row.endpos();
- text_->getPar(pit).spellCheck(from, to, wl, suggestions, false);
+ while (from < row.endpos()) {
+ text_->getPar(pit).spellCheck(from, to, wl, suggestions, false);
+ from = to + 1;
+ }
}
// Don't paint the row if a full repaint has not been requested