]> git.lyx.org Git - features.git/commitdiff
We should at least also check the index. But probably more is needed.
authorRichard Heck <rgheck@comcast.net>
Wed, 13 Aug 2008 17:05:34 +0000 (17:05 +0000)
committerRichard Heck <rgheck@comcast.net>
Wed, 13 Aug 2008 17:05:34 +0000 (17:05 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26147 a592a061-630c-0410-9148-cb99ea01b6c8

src/Cursor.cpp

index 65d9feea4f672f1abd0f3f04bd225031488c5605..5ecf7158afdbda56d16a1538cbfd8b86b8bf904a 100644 (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;
 }