X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxfind.cpp;h=cc8d1cf12ff07abb9c6b74cf476a117862e6ecc5;hb=d3c63f97c4fce4e091277ced6c1829473c311231;hp=69a9b80883c37eaeb7bc14084484fa94e2b6920d;hpb=355395174bf50e1a3b8514e8eebec978c496d6ba;p=lyx.git diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index 69a9b80883..cc8d1cf12f 100644 --- a/src/lyxfind.cpp +++ b/src/lyxfind.cpp @@ -727,9 +727,8 @@ private: static docstring buffer_to_latex(Buffer & buffer) { OutputParams runparams(&buffer.params().encoding()); - TexRow texrow(false); odocstringstream ods; - otexstream os(ods, texrow); + otexstream os(ods, false); runparams.nice = true; runparams.flavor = OutputParams::LATEX; runparams.linelen = 80; //lyxrc.plaintext_linelen; @@ -1048,9 +1047,8 @@ docstring latexifyFromCursor(DocIterator const & cur, int len) Buffer const & buf = *cur.buffer(); LBUFERR(buf.params().isLatex()); - TexRow texrow(false); odocstringstream ods; - otexstream os(ods, texrow); + otexstream os(ods, false); OutputParams runparams(&buf.params().encoding()); runparams.nice = false; runparams.flavor = OutputParams::LATEX; @@ -1395,9 +1393,8 @@ static void findAdvReplace(BufferView * bv, FindAndReplaceOptions const & opt, M LYXERR(Debug::FIND, "After pasteParagraphList() cur=" << cur << endl); sel_len = repl_buffer.paragraphs().begin()->size(); } else if (cur.inMathed()) { - TexRow texrow(false); odocstringstream ods; - otexstream os(ods, texrow); + otexstream os(ods, false); OutputParams runparams(&repl_buffer.params().encoding()); runparams.nice = false; runparams.flavor = OutputParams::LATEX;