From: Edwin Leuven Date: Mon, 22 Mar 2010 00:42:01 +0000 (+0000) Subject: silence compiler warning X-Git-Tag: 2.0.0~3734 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=dba368d291f9235c97df83312cc8043cd4e720b4;p=features.git silence compiler warning git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33830 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 2761170c5e..99987196c9 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -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;