X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxfind.cpp;h=d7038dedcb1e66d4bc96bb8e328e81dd26f295c1;hb=044933b0d929e759d0c7badf55eafc471623cc0c;hp=85b66d071588639d32e4447c9f0358897e016e04;hpb=d3b5260f45d8b65c972f89819113723de96ed5ed;p=lyx.git diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index 85b66d0715..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; } @@ -1072,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; } @@ -1094,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; } @@ -1426,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(); }