]> git.lyx.org Git - lyx.git/blobdiff - src/tabular.C
add GuiView parent to QToc for proper memory management.
[lyx.git] / src / tabular.C
index 39822ef7d89b18ab2460bf82d7415c0a6702e874..13873a5bfa06c35d0278b6fa73e54aee8628f443 100644 (file)
@@ -2136,6 +2136,7 @@ int LyXTabular::TeXRow(odocstream & os, row_type i, Buffer const & buf,
                        os << "\\addlinespace\n";
                else
                        os << "\\noalign{\\vskip\\doublerulesep}\n";
+               ++ret;
        } else if(!row_info[i].top_space.zero()) {
                if (use_booktabs)
                        os << "\\addlinespace["
@@ -2193,6 +2194,7 @@ int LyXTabular::TeXRow(odocstream & os, row_type i, Buffer const & buf,
                        os << "\\addlinespace\n";
                else
                        os << "\\noalign{\\vskip\\doublerulesep}\n";
+               ++ret;
        } else if (!row_info[i].interline_space.zero()) {
                if (use_booktabs)
                        os << "\\addlinespace["
@@ -2692,7 +2694,7 @@ LyXTabular::getCellFromInset(InsetBase const * inset) const
 
        for (idx_type cell = 0, n = getNumberOfCells(); cell < n; ++cell)
                if (getCellInset(cell).get() == inset) {
-                       lyxerr[Debug::INSETTEXT] << "LyXTabular::getCellFromInset: "
+                       LYXERR(Debug::INSETTEXT) << "LyXTabular::getCellFromInset: "
                                << "cell=" << cell << endl;
                        return cell;
                }