From 3cdfa1708fee0fd246b6df97c334591fce4f5eec Mon Sep 17 00:00:00 2001 From: Stefan Schimanski Date: Fri, 22 Feb 2008 21:57:45 +0000 Subject: [PATCH] * the bidi array drives me crazy. It only holds the current row. So better check that our position is in that row. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23145 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/rowpainter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rowpainter.cpp b/src/rowpainter.cpp index 7801d6b023..89d583ddc2 100644 --- a/src/rowpainter.cpp +++ b/src/rowpainter.cpp @@ -685,7 +685,9 @@ void RowPainter::paintText() pos_type inlineCompletionVPos = -1; if (inlineCompletionPos.inTexted() && inlineCompletionPos.text() == &text_ - && inlineCompletionPos.pit() == pit_) { + && inlineCompletionPos.pit() == pit_ + && inlineCompletionPos.pos() >= row_.pos() + && inlineCompletionPos.pos() < row_.endpos()) { // draw visually behind the previous character inlineCompletionVPos = bidi_.log2vis(inlineCompletionPos.pos() - 1); } -- 2.39.2