Fix selection drawing for RTL text in tables.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1476 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2001-02-09 20:45:31 +00:00
parent 371c6ba3ba
commit d89e29cf7c
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2001-02-09 Dekel Tsur <dekelts@tau.ac.il>
* text.C (GetVisibleRow): Fix selection drawing for RTL text in tables.
2001-02-09 John Levon <moz@compsoc.man.ac.uk> 2001-02-09 John Levon <moz@compsoc.man.ac.uk>
* buffer.h: * buffer.h:

View File

@ -3220,7 +3220,9 @@ void LyXText::GetVisibleRow(BufferView * bview, int y_offset, int x_offset,
sel_start_cursor.pos() <= pos) && sel_start_cursor.pos() <= pos) &&
(sel_end_cursor.row() != row_ptr || (sel_end_cursor.row() != row_ptr ||
pos < sel_end_cursor.pos()) ) 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, y_offset,
int(tmpx - old_tmpx + 1), int(tmpx - old_tmpx + 1),
row_ptr->height(), row_ptr->height(),