X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxfind.C;h=98f30e15d3ae62d39b87d2c5959ebe17133bfba0;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=60892d632049e718b7d18a39fc45b4b929a9aa9f;hpb=de6418f37765fe452f135f96dee6d49897bff215;p=lyx.git diff --git a/src/lyxfind.C b/src/lyxfind.C index 60892d6320..98f30e15d3 100644 --- a/src/lyxfind.C +++ b/src/lyxfind.C @@ -126,8 +126,7 @@ 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().isUnchanged(cur.pos())) return true; return false; } @@ -184,7 +183,7 @@ int replaceAll(BufferView * bv, 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().eraseChars(pos, pos + ssize, buf.params().trackChanges); cur.paragraph().insert(pos, from_utf8(replacestr), font, Change(buf.params().trackChanges ?