From 9663fdca3179635bfe72350988aad7607ec0b074 Mon Sep 17 00:00:00 2001 From: Dekel Tsur Date: Fri, 9 Feb 2001 20:45:32 +0000 Subject: [PATCH] Fix selection drawing for RTL text in tables. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_1_6@1477 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/text.C | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/text.C b/src/text.C index 8bae8d4abc..b493a5498a 100644 --- a/src/text.C +++ b/src/text.C @@ -3220,7 +3220,9 @@ void LyXText::GetVisibleRow(BufferView * bview, int y_offset, int x_offset, sel_start_cursor.pos() <= pos) && (sel_end_cursor.row() != row_ptr || pos < sel_end_cursor.pos()) ) - pain.fillRectangle(x_offset + int(old_tmpx), + /// Here we do not use x_offset as x_offset was + // added to x. + pain.fillRectangle(int(old_tmpx), y_offset, int(tmpx - old_tmpx + 1), row_ptr->height(),