]> git.lyx.org Git - features.git/commitdiff
BufferView.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=5287, patch by Vincent
authorUwe Stöhr <uwestoehr@web.de>
Mon, 29 Sep 2008 22:55:24 +0000 (22:55 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Mon, 29 Sep 2008 22:55:24 +0000 (22:55 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26630 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.cpp

index ecb513f81e746e527666f12ea18f6dc418850ac1..c9b03bd607068679b1b39284af7d616bfd251b63 100644 (file)
@@ -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.