]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTabular.cpp
Pure HTML output for math macros.
[lyx.git] / src / insets / InsetTabular.cpp
index 2761170c5e23186e632927583f1cf46230825008..d398c87f4c40bffe1d332f733c0bf493e1fb4aa5 100644 (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; 
@@ -4289,6 +4288,7 @@ bool InsetTabular::getStatus(Cursor & cur, FuncRequest const & cmd,
        case LFUN_BRANCH_INSERT:
        case LFUN_PHANTOM_INSERT:
        case LFUN_WRAP_INSERT:
+       case LFUN_PREVIEW_INSERT:
        case LFUN_ERT_INSERT: {
                if (cur.selIsMultiCell()) {
                        status.setEnabled(false);