]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfind.cpp
This optional argument to the InsetCollapsable constructor
[lyx.git] / src / lyxfind.cpp
index 00bc9d51def3f9f1de0699839ef86cdf9979c61a..fbb515ba39991461de42b3b10b9e0b4acc15dda4 100644 (file)
@@ -158,7 +158,7 @@ int replaceAll(BufferView * bv,
        cur.setCursor(doc_iterator_begin(buf.inset()));
        while (findForward(cur, match, false)) {
                pos_type pos = cur.pos();
-               Font const font
+               Font const font
                        = cur.paragraph().getFontSettings(buf.params(), pos);
                cur.recordUndo();
                int striked = ssize - cur.paragraph().eraseChars(pos, pos + ssize,
@@ -333,10 +333,6 @@ bool findNextChange(BufferView * bv)
                if (change != orig_change)
                        break;
        }
-       // avoid crash (assertion violation) if the imaginary end-of-par
-       // character of the last paragraph of the document is marked as changed
-       if (tip.at_end())
-               tip.backwardPos();
 
        // Now put cursor to end of selection:
        bv->cursor().setCursor(cur);