From da3d4e681b42461957f53c93c980e259bbafa2f1 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Mon, 22 Nov 2010 09:06:36 +0000 Subject: [PATCH] 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 --- src/rowpainter.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/rowpainter.cpp b/src/rowpainter.cpp index e1367a046d..06d458613e 100644 --- a/src/rowpainter.cpp +++ b/src/rowpainter.cpp @@ -235,7 +235,7 @@ void RowPainter::paintChars(pos_type & vpos, FontInfo const & font, bool const spell_state = lyxrc.spellcheck_continuously && par_.isMisspelled(pos); - char_type prev_char = ' '; + char_type prev_char = 0; // collect as much similar chars as we can for (++vpos ; vpos < end ; ++vpos) { pos = bidi_.vis2log(vpos); @@ -260,10 +260,8 @@ void RowPainter::paintChars(pos_type & vpos, FontInfo const & font, char_type c = par_.getChar(pos); - if (c == '\t' || prev_char == '\t') { - prev_char = c; + if (c == '\t') break; - } if (!isPrintableNonspace(c)) break; @@ -316,6 +314,7 @@ void RowPainter::paintChars(pos_type & vpos, FontInfo const & font, } str.push_back(c); + prev_char = c; } docstring s(&str[0], str.size()); -- 2.39.2