From: Enrico Forestieri Date: Thu, 14 Apr 2011 22:44:46 +0000 (+0000) Subject: Fix bug #7394 (Crash while selecting texts) X-Git-Tag: 2.0.0~124 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=075804d685aa0c9b8b7fae3a9e244a53e648ed90;p=features.git Fix bug #7394 (Crash while selecting texts) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38385 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/BufferView.cpp b/src/BufferView.cpp index a8f4b200aa..3c3c74c417 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -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(); }