Fix bug #7394 (Crash while selecting texts)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38385 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2011-04-14 22:44:46 +00:00
parent 23258f5399
commit 075804d685

View 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();
}