mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
Fix previous commit: previous_char was not updated at all!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36431 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
90ac66e7d1
commit
da3d4e681b
@ -235,7 +235,7 @@ void RowPainter::paintChars(pos_type & vpos, FontInfo const & font,
|
|||||||
bool const spell_state =
|
bool const spell_state =
|
||||||
lyxrc.spellcheck_continuously && par_.isMisspelled(pos);
|
lyxrc.spellcheck_continuously && par_.isMisspelled(pos);
|
||||||
|
|
||||||
char_type prev_char = ' ';
|
char_type prev_char = 0;
|
||||||
// collect as much similar chars as we can
|
// collect as much similar chars as we can
|
||||||
for (++vpos ; vpos < end ; ++vpos) {
|
for (++vpos ; vpos < end ; ++vpos) {
|
||||||
pos = bidi_.vis2log(vpos);
|
pos = bidi_.vis2log(vpos);
|
||||||
@ -260,10 +260,8 @@ void RowPainter::paintChars(pos_type & vpos, FontInfo const & font,
|
|||||||
|
|
||||||
char_type c = par_.getChar(pos);
|
char_type c = par_.getChar(pos);
|
||||||
|
|
||||||
if (c == '\t' || prev_char == '\t') {
|
if (c == '\t')
|
||||||
prev_char = c;
|
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
|
|
||||||
if (!isPrintableNonspace(c))
|
if (!isPrintableNonspace(c))
|
||||||
break;
|
break;
|
||||||
@ -316,6 +314,7 @@ void RowPainter::paintChars(pos_type & vpos, FontInfo const & font,
|
|||||||
}
|
}
|
||||||
|
|
||||||
str.push_back(c);
|
str.push_back(c);
|
||||||
|
prev_char = c;
|
||||||
}
|
}
|
||||||
|
|
||||||
docstring s(&str[0], str.size());
|
docstring s(&str[0], str.size());
|
||||||
|
Loading…
Reference in New Issue
Block a user