The branch, master, has been updated. - Log -----------------------------------------------------------------
commit a9de2597ed8df035576e92053bcaac21af062c82 Merge: 430cf3ee ea76d6d Author: Stephan Witt <sw...@lyx.org> Date: Mon Jul 30 14:34:12 2012 +0200 Merge branch 'master' of git.lyx.org:lyx commit 430cf3ee5ef125b8bc610300afca58437b734306 Author: Stephan Witt <sw...@lyx.org> Date: Mon Jul 30 14:32:29 2012 +0200 Fix the wrong cursor move when forward flag is false: The forward flag is used to place the cursor behind the replaced text if it's true. But it's not correct to move the cursor if it's false. The cursor is in front of the replacement already after the replaceSelectionWithString() was done. diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index 73f6469..bd4e04e 100644 --- a/src/lyxfind.cpp +++ b/src/lyxfind.cpp @@ -275,9 +275,6 @@ pair<bool, int> replaceOne(BufferView * bv, docstring searchstr, if (forward) { cur.pos() += replacestr.length(); LASSERT(cur.pos() <= cur.lastpos(), /* */); - } else { - cur.pos() -= replacestr.length(); - LASSERT(cur.pos() >= 0, /* */); } if (findnext) findOne(bv, searchstr, case_sens, whole, forward, false); ----------------------------------------------------------------------- Summary of changes: src/lyxfind.cpp | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) hooks/post-receive -- The LyX Source Repository