X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fbuffer.C;h=3e6a4e3a2b11cf6e0d61de0627490985655117af;hb=27652900a60fd078f161ce866ddaed21dba21eff;hp=e2ee6861970d85616b4b1b913c25e225ba55492b;hpb=d8037e4bfdd8524ccbf3a1fccfc9d5264644b99e;p=lyx.git diff --git a/src/buffer.C b/src/buffer.C index e2ee686197..3e6a4e3a2b 100644 --- a/src/buffer.C +++ b/src/buffer.C @@ -1513,8 +1513,8 @@ void Buffer::readInset(LyXLex & lex, Paragraph *& par, } else if (tmptok == "Formula") { inset = new InsetFormula; } else if (tmptok == "Figure") { // Backward compatibility - inset = new InsetFig(100, 100, *this); - //inset = new InsetGraphics; +// inset = new InsetFig(100, 100, *this); + inset = new InsetGraphics; } else if (tmptok == "Graphics") { inset = new InsetGraphics; } else if (tmptok == "Info") {// backwards compatibility @@ -2545,15 +2545,15 @@ void Buffer::latexParagraphs(ostream & ofs, Paragraph * par, if ((in == 0) || !in->forceDefaultParagraphs(in)) { LyXLayout const & layout = textclasslist.Style(params.textclass, par->layout); - - if (layout.intitle) { + + if (layout.intitle) { if (already_title) { lyxerr <<"Error in latexParagraphs: You" " should not mix title layouts" " with normal ones." << endl; } else was_title = true; - } else if (was_title && !already_title) { + } else if (was_title && !already_title) { ofs << "\\maketitle\n"; texrow.newline(); already_title = true;