mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
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
This commit is contained in:
parent
0985bab38e
commit
54d81dd012
@ -1742,7 +1742,7 @@ void BufferView::setCursorFromRow(int row)
|
|||||||
bool BufferView::setCursorFromInset(Inset const * inset)
|
bool BufferView::setCursorFromInset(Inset const * inset)
|
||||||
{
|
{
|
||||||
// are we already there?
|
// are we already there?
|
||||||
if (cursor().nextInset() == inset)
|
if (&cursor().inset() == inset || cursor().nextInset() == inset)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// Inset is not at cursor position. Find it in the document.
|
// Inset is not at cursor position. Find it in the document.
|
||||||
|
Loading…
Reference in New Issue
Block a user