From 37b79f1039401c78cd18fb29f463587ceb25e1e3 Mon Sep 17 00:00:00 2001 From: Stefan Schimanski Date: Fri, 22 Feb 2008 23:40:36 +0000 Subject: [PATCH] * allow on position more at the row end for the completion git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23148 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/rowpainter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rowpainter.cpp b/src/rowpainter.cpp index 89d583ddc2..eba16563ac 100644 --- a/src/rowpainter.cpp +++ b/src/rowpainter.cpp @@ -687,8 +687,8 @@ void RowPainter::paintText() && inlineCompletionPos.text() == &text_ && inlineCompletionPos.pit() == pit_ && inlineCompletionPos.pos() >= row_.pos() - && inlineCompletionPos.pos() < row_.endpos()) { - // draw visually behind the previous character + && inlineCompletionPos.pos() <= row_.endpos()) { + // draw logically behind the previous character inlineCompletionVPos = bidi_.log2vis(inlineCompletionPos.pos() - 1); } @@ -769,7 +769,7 @@ void RowPainter::paintText() // Is the inline completion in front of character? if (font.isRightToLeft() && vpos == inlineCompletionVPos) - paintInlineCompletion(font); + paintInlineCompletion(font); if (par_.isSeparator(pos)) { Font const orig_font = text_metrics_.getDisplayFont(pit_, pos); -- 2.39.2