From a74153da0b736c2f6506b87d61c06213becb8036 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Tue, 18 Oct 2011 18:57:42 +0000 Subject: [PATCH] cur.inTexted() != !cur.inMathed() git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39883 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/lyxfind.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index 081fae8ad0..b67f915d7c 100644 --- a/src/lyxfind.cpp +++ b/src/lyxfind.cpp @@ -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);