Fix part of bug #6400: Shift+mouse click loses the existing selection instead of extending it.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32578 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-12-18 12:08:32 +00:00
parent 67c03d202f
commit 7e08a4376e

View File

@ -2261,6 +2261,7 @@ bool BufferView::mouseSetCursor(Cursor & cur, bool select)
if (!do_selection && d->cursor_.inTexted())
update |= checkDepm(cur, d->cursor_);
if (!do_selection)
d->cursor_.resetAnchor();
d->cursor_.setCursor(cur);
d->cursor_.boundary(cur.boundary());