]> git.lyx.org Git - lyx.git/blobdiff - src/output_latex.C
more cursor dispatch
[lyx.git] / src / output_latex.C
index 62807cf5aa1d3c55bd32cd8eb1898b39c7b58ad0..739cec7c62f925330b801875e54ae5de5dd26fa6 100644 (file)
@@ -194,8 +194,8 @@ InsetOptArg * optArgInset(Paragraph const & par)
        InsetList::const_iterator it = par.insetlist.begin();
        InsetList::const_iterator end = par.insetlist.end();
        for (; it != end; ++it) {
-               InsetOld * ins = it->inset;
-               if (ins->lyxCode() == InsetOld::OPTARG_CODE) {
+               InsetBase * ins = it->inset;
+               if (ins->lyxCode() == InsetBase::OPTARG_CODE) {
                        return static_cast<InsetOptArg *>(ins);
                }
        }
@@ -244,11 +244,6 @@ TeXOnePar(Buffer const & buf,
                        texrow.newline();
                }
 
-               if (pit->params().spaceTop().kind() != VSpace::NONE) {
-                       os << pit->params().spaceTop().asLatexCommand(bparams);
-                       further_blank_line = true;
-               }
-
                if (further_blank_line) {
                        os << '\n';
                        texrow.newline();
@@ -389,11 +384,6 @@ TeXOnePar(Buffer const & buf,
        if (in == 0 || !in->forceDefaultParagraphs(in)) {
                further_blank_line = false;
 
-               if (pit->params().spaceBottom().kind() != VSpace::NONE) {
-                       os << pit->params().spaceBottom().asLatexCommand(bparams);
-                       further_blank_line = true;
-               }
-
                if (further_blank_line) {
                        os << '\n';
                        texrow.newline();
@@ -436,7 +426,7 @@ TeXOnePar(Buffer const & buf,
        return ++pit;
 }
 
-} //anon namespace
+} // anon namespace
 
 //
 // LaTeX all paragraphs from par to endpar, if endpar == 0 then to the end