X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxfind.cpp;h=d7038dedcb1e66d4bc96bb8e328e81dd26f295c1;hb=044933b0d929e759d0c7badf55eafc471623cc0c;hp=c217281b66f526d2e00cbe678184bd146df3ecb6;hpb=60e594a0f73fa50d9b5a75ddbc2f686565dd814b;p=lyx.git diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index c217281b66..d7038dedcb 100644 --- a/src/lyxfind.cpp +++ b/src/lyxfind.cpp @@ -385,7 +385,6 @@ bool lyxreplace(BufferView * bv, else bv->message(_("String not found.")); } - bv->buffer().updatePreviews(); return update; } @@ -1008,7 +1007,6 @@ docstring stringifyFromCursor(DocIterator const & cur, int len) pos_type end = ( len == -1 || cur.pos() + len > int(par.size()) ) ? int(par.size()) : cur.pos() + len; OutputParams runparams(&cur.buffer()->params().encoding()); - odocstringstream os; runparams.nice = true; runparams.flavor = OutputParams::LATEX; runparams.linelen = 100000; //lyxrc.plaintext_linelen; @@ -1073,7 +1071,7 @@ docstring latexifyFromCursor(DocIterator const & cur, int len) for (int s = cur.depth() - 1; s >= 0; --s) { CursorSlice const & cs = cur[s]; if (cs.asInsetMath() && cs.asInsetMath()->asHullInset()) { - WriteStream ws(ods); + WriteStream ws(os); cs.asInsetMath()->asHullInset()->header_write(ws); break; } @@ -1095,7 +1093,7 @@ docstring latexifyFromCursor(DocIterator const & cur, int len) CursorSlice const & cs = cur[s]; InsetMath * inset = cs.asInsetMath(); if (inset && inset->asHullInset()) { - WriteStream ws(ods); + WriteStream ws(os); inset->asHullInset()->footer_write(ws); break; } @@ -1427,7 +1425,6 @@ static void findAdvReplace(BufferView * bv, FindAndReplaceOptions const & opt, M LYXERR(Debug::FIND, "After pos adj cur=" << cur << " with depth: " << cur.depth() << " and len: " << sel_len); bv->putSelectionAt(DocIterator(cur), sel_len, !opt.forward); bv->processUpdateFlags(Update::Force); - bv->buffer().updatePreviews(); }