From 99366a9a448117f327b57d8505c7cc69dd0ee3e3 Mon Sep 17 00:00:00 2001 From: Edwin Leuven Date: Tue, 13 Apr 2010 18:56:28 +0000 Subject: [PATCH] correctly valign content of multirow cells git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34129 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetTabular.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; } -- 2.39.2