The branch, master, has been updated.

- Log -----------------------------------------------------------------

commit a88e5cbf7427ac776ba40a69b06cf53201c5897f
Author: Jean-Marc Lasgouttes <lasgout...@lyx.org>
Date:   Fri Apr 5 15:58:08 2013 +0200

    Fix bug #8370: crash when searching for next change
    
    Cursor::backwardPos() may enter in a nested inset, while 
CursorSlice::backwardPos() will not.

diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp
index 50a5059..a01fbd6 100644
--- a/src/lyxfind.cpp
+++ b/src/lyxfind.cpp
@@ -452,13 +452,14 @@ bool findChange(BufferView * bv, bool next)
        bv->cursor().setCursor(cur);
        bv->cursor().resetAnchor();
 
+       CursorSlice & tip = cur.top();
+
        if (!next)
                // take a step into the change
-               cur.backwardPos();
+               tip.backwardPos();
 
-       Change orig_change = cur.paragraph().lookupChange(cur.pos());
+       Change orig_change = tip.paragraph().lookupChange(tip.pos());
 
-       CursorSlice & tip = cur.top();
        if (next) {
                for (; !tip.at_end(); tip.forwardPos()) {
                        Change change = tip.paragraph().lookupChange(tip.pos());

-----------------------------------------------------------------------

Summary of changes:
 src/lyxfind.cpp |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
The LyX Source Repository

Reply via email to