mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +00:00
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:
parent
5dc747afd0
commit
7ff4105558
@ -3259,7 +3259,9 @@ bool InsetTabular::isCellSelected(Cursor & cur, row_type row, col_type col)
|
|||||||
col_type cs, ce;
|
col_type cs, ce;
|
||||||
getSelection(cur, rs, re, 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;
|
return true;
|
||||||
} else
|
} else
|
||||||
if (col == tabular.cellColumn(cur.idx())
|
if (col == tabular.cellColumn(cur.idx())
|
||||||
|
Loading…
Reference in New Issue
Block a user