mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
correctly valign content of multirow cells
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34129 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
6b564461e7
commit
99366a9a44
@ -1224,7 +1224,12 @@ int Tabular::textHOffset(idx_type cell) const
|
||||
|
||||
int Tabular::textVOffset(idx_type cell) const
|
||||
{
|
||||
return cellInfo(cell).voffset;
|
||||
int voffset = cellInfo(cell).voffset;
|
||||
if (isMultiRow(cell)) {
|
||||
row_type const row = cellRow(cell);
|
||||
voffset += (cellHeight(cell) - rowAscent(row) - rowDescent(row))/2;
|
||||
}
|
||||
return voffset;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user