From: Uwe Stöhr Date: Mon, 29 Sep 2008 22:55:24 +0000 (+0000) Subject: BufferView.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=5287, patch by Vincent X-Git-Tag: 1.6.10~3259 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=54d81dd0122e82821c648d82dd084fc47730db17;p=features.git BufferView.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=5287, patch by Vincent git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26630 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/BufferView.cpp b/src/BufferView.cpp index ecb513f81e..c9b03bd607 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -1742,7 +1742,7 @@ void BufferView::setCursorFromRow(int row) bool BufferView::setCursorFromInset(Inset const * inset) { // are we already there? - if (cursor().nextInset() == inset) + if (&cursor().inset() == inset || cursor().nextInset() == inset) return true; // Inset is not at cursor position. Find it in the document.