git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26630 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2008-09-29 22:55:24 +00:00
parent 0985bab38e
commit 54d81dd012

View 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.