We should at least also check the index. But probably more is needed.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26147 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2008-08-13 17:05:34 +00:00
parent 1bad3e5232
commit cf33f88943

View File

@ -968,7 +968,9 @@ void Cursor::setSelection()
selection() = true;
// A selection with no contents is not a selection
// FIXME: doesnt look ok
if (pit() == anchor().pit() && pos() == anchor().pos())
if (idx() == anchor().idx() &&
pit() == anchor().pit() &&
pos() == anchor().pos())
selection() = false;
}