git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37048 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Tommaso Cucinotta 2010-12-30 17:59:59 +00:00
parent fa0e638b95
commit 22d245312a

View File

@ -1196,9 +1196,6 @@ static void findAdvReplace(BufferView * bv, FindAndReplaceOptions const & opt, M
Buffer repl_buffer("", false);
repl_buffer.setUnnamed(true);
LASSERT(repl_buffer.readString(lyx), /**/);
repl_buffer.changeLanguage(
repl_buffer.language(),
cur.getFont().language());
if (opt.keep_case && sel_len >= 2) {
if (cur.inTexted()) {
if (firstUppercase(cur))
@ -1209,6 +1206,9 @@ static void findAdvReplace(BufferView * bv, FindAndReplaceOptions const & opt, M
}
cap::cutSelection(cur, false, false);
if (!cur.inMathed()) {
repl_buffer.changeLanguage(
repl_buffer.language(),
cur.getFont().language());
LYXERR(Debug::FIND, "Replacing by pasteParagraphList()ing repl_buffer");
LYXERR(Debug::FIND, "Before pasteParagraphList() cur=" << cur << endl);
cap::pasteParagraphList(cur, repl_buffer.paragraphs(),