mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
cur.inTexted() != !cur.inMathed()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39883 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
76962d5515
commit
a74153da0b
@ -1348,7 +1348,7 @@ static void findAdvReplace(BufferView * bv, FindAndReplaceOptions const & opt, M
|
||||
}
|
||||
}
|
||||
cap::cutSelection(cur, false, false);
|
||||
if (!cur.inMathed()) {
|
||||
if (cur.inTexted()) {
|
||||
repl_buffer.changeLanguage(
|
||||
repl_buffer.language(),
|
||||
cur.getFont().language());
|
||||
@ -1359,7 +1359,7 @@ static void findAdvReplace(BufferView * bv, FindAndReplaceOptions const & opt, M
|
||||
bv->buffer().errorList("Paste"));
|
||||
LYXERR(Debug::FIND, "After pasteParagraphList() cur=" << cur << endl);
|
||||
sel_len = repl_buffer.paragraphs().begin()->size();
|
||||
} else {
|
||||
} else if (cur.inMathed()) {
|
||||
TexRow texrow;
|
||||
odocstringstream ods;
|
||||
otexstream os(ods, texrow);
|
||||
|
Loading…
Reference in New Issue
Block a user