]> git.lyx.org Git - features.git/commitdiff
Merge branch 'master' of git.lyx.org:lyx
authorStephan Witt <switt@lyx.org>
Mon, 30 Jul 2012 12:34:12 +0000 (14:34 +0200)
committerStephan Witt <switt@lyx.org>
Mon, 30 Jul 2012 12:34:12 +0000 (14:34 +0200)
src/lyxfind.cpp

index 73f6469754fe43b3ca2e903e6c893fac52491622..bd4e04e860e9825fdd4b0961402b792bc979c69e 100644 (file)
@@ -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);