From ddebdc4514e20a0891d1b954a2b9eff789bf15f7 Mon Sep 17 00:00:00 2001 From: Tommaso Cucinotta Date: Mon, 11 Jan 2010 02:20:51 +0000 Subject: [PATCH] Now the local text language is kept while replacing text (addressing #6171). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32961 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/lyxfind.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index d65936e623..88c9461a38 100644 --- a/src/lyxfind.cpp +++ b/src/lyxfind.cpp @@ -1178,6 +1178,9 @@ bool findAdv(BufferView * bv, FindAndReplaceOptions const & opt) Buffer repl_buffer("", false); repl_buffer.setUnnamed(true); if (repl_buffer.readString(lyx)) { + repl_buffer.changeLanguage( + repl_buffer.language(), + bv->cursor().getFont().language()); if (opt.keep_case && match_len >= 2) { if (cur.inTexted()) { if (firstUppercase(cur))