From b6af1ce3e1d5580c451c8ff4bf8779883f7361e5 Mon Sep 17 00:00:00 2001 From: Michael Schmitt Date: Fri, 20 Oct 2006 13:16:15 +0000 Subject: [PATCH] change tracking: src/lyxfind.C: some source code reformatting; pass trackChange parameter to Paragraph::erase(..) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15405 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/lyxfind.C | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lyxfind.C b/src/lyxfind.C index a48b5db8f8..f6bad4a97c 100644 --- a/src/lyxfind.C +++ b/src/lyxfind.C @@ -127,8 +127,8 @@ bool findBackwards(DocIterator & cur, MatchString const & match) bool findChange(DocIterator & cur) { for (; cur; cur.forwardPos()) - if (cur.inTexted() && cur.paragraph().lookupChange(cur.pos()).type - != Change::UNCHANGED) + if (cur.inTexted() && + cur.paragraph().lookupChange(cur.pos()).type != Change::UNCHANGED) return true; return false; } @@ -185,7 +185,8 @@ int replaceAll(BufferView * bv, lyx::pos_type pos = cur.pos(); LyXFont const font = cur.paragraph().getFontSettings(buf.params(), pos); - int striked = ssize - cur.paragraph().erase(pos, pos + ssize); + int striked = ssize - cur.paragraph().erase(pos, pos + ssize, + buf.params().trackChanges); cur.paragraph().insert(pos, replacestr, font, Change(buf.params().trackChanges ? Change::INSERTED : Change::UNCHANGED));