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