mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
correct implementation of "mark whole paragraph" for spell check
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39501 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
90dc008182
commit
e92c786618
@ -400,7 +400,10 @@ public:
|
||||
}
|
||||
|
||||
void requestSpellCheck(pos_type pos) {
|
||||
speller_state_.needsRefresh(pos);
|
||||
if (pos == -1)
|
||||
speller_state_.needsCompleteRefresh(speller_state_.currentChangeNumber());
|
||||
else
|
||||
speller_state_.needsRefresh(pos);
|
||||
}
|
||||
|
||||
void readySpellCheck() {
|
||||
@ -3606,7 +3609,7 @@ Language * Paragraph::Private::getSpellLanguage(pos_type const from) const
|
||||
|
||||
void Paragraph::requestSpellCheck(pos_type pos)
|
||||
{
|
||||
d->requestSpellCheck(pos == -1 ? size() : pos);
|
||||
d->requestSpellCheck(pos);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user