From b0910eb6d4dcba0dfa79a9a2a55e3ad6f32dea95 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Tue, 5 Jan 2010 16:34:52 +0000 Subject: [PATCH] Why was there a 1 ? We only have to make sure that pos - 1 >= 0. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32772 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/lyxfind.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index 77b48cf8e0..d5653a6feb 100644 --- a/src/lyxfind.cpp +++ b/src/lyxfind.cpp @@ -377,7 +377,7 @@ bool findChange(BufferView * bv, bool next) // clear the selection and search the other way around (see the end // of this function). This will avoid changes to be selected half. bool search_both_sides = false; - if (cur.pos() > 1) { + if (cur.pos() > 0) { Change change_next_pos = cur.paragraph().lookupChange(cur.pos()); Change change_prev_pos -- 2.39.2