* 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
This commit is contained in:
Stefan Schimanski 2008-02-22 21:57:45 +00:00
parent 0d7ca9cdc3
commit 3cdfa1708f

View File

@ -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);
}