]> git.lyx.org Git - features.git/commitdiff
Fix bug #7394 (Crash while selecting texts)
authorEnrico Forestieri <forenr@lyx.org>
Thu, 14 Apr 2011 22:44:46 +0000 (22:44 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Thu, 14 Apr 2011 22:44:46 +0000 (22:44 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38385 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.cpp

index a8f4b200aa33fa2adb84943a1be4040a943be4c8..3c3c74c417a286d55cfb9de69459e58371541637 100644 (file)
@@ -2190,6 +2190,8 @@ void BufferView::setCursorFromRow(int row)
                buffer_.text().setCursor(d->cursor_, 0, 0);
        else
                buffer_.text().setCursor(d->cursor_, buffer_.getParFromID(tmpid).pit(), tmppos);
+       d->cursor_.setSelection(false);
+       d->cursor_.resetAnchor();
        recenter();
 }