correctly draw selected multirow cells

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33764 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Edwin Leuven 2010-03-16 09:46:25 +00:00
parent 5dc747afd0
commit 7ff4105558

View File

@ -3259,7 +3259,9 @@ bool InsetTabular::isCellSelected(Cursor & cur, row_type row, col_type col)
col_type cs, ce;
getSelection(cur, rs, re, cs, ce);
if (col >= cs && col <= ce && row >= rs && row <= re)
idx_type const cell = tabular.cellIndex(row, col);
row_type const span = tabular.rowSpan(cell);
if (col >= cs && col <= ce && row + span - 1 >= rs && row <= re)
return true;
} else
if (col == tabular.cellColumn(cur.idx())