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;