mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Addressing #6560.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37048 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
fa0e638b95
commit
22d245312a
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user