silence compiler warning

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33830 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Edwin Leuven 2010-03-22 00:42:01 +00:00
parent 6b8532784b
commit dba368d291

View File

@ -3228,10 +3228,9 @@ void InsetTabular::metrics(MetricsInfo & mi, Dimension & dim) const
// = descent of text in last par + TEXT_TO_INSET_OFFSET:
int const lastpardes = tm.last().second->descent()
+ TEXT_TO_INSET_OFFSET;
int offset;
int offset = 0;
switch (tabular.getVAlignment(cell)) {
case Tabular::LYX_VALIGN_TOP:
offset = 0;
break;
case Tabular::LYX_VALIGN_MIDDLE:
offset = -(dim.des - lastpardes)/2;