From: Edwin Leuven Date: Tue, 13 Apr 2010 18:56:28 +0000 (+0000) Subject: correctly valign content of multirow cells X-Git-Tag: 2.0.0~3478 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=99366a9a448117f327b57d8505c7cc69dd0ee3e3;p=features.git correctly valign content of multirow cells git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34129 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 7eafa7cae0..d75e2a6ffe 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -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; }