If we call cur.setSelection() in line Text3.cpp:1256 we should require some

sort of repaint, because if the selection is adjusted, we may have to draw the
selection again.

Patch by Vincent.

http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg143572.html



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26392 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2008-09-13 22:59:09 +00:00
parent c0fbe72e1d
commit 9b1c5d2233

View File

@ -1254,9 +1254,12 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
// selectWord but bvcur is current
// mouse position.
cur.bv().cursor().setSelection();
}
// We might have removed an empty but drawn selection
// (probably a margin)
cur.updateFlags(Update::SinglePar | Update::FitCursor);
} else
cur.noUpdate();
// FIXME: We could try to handle drag and drop of selection here.
cur.noUpdate();
return;
case mouse_button::button2: