* src/CutAndPaste.C

(cutSelection): Fill the system clipboard if this is a real cut (only
	if the cursor is in texted, the mathed case is done elsewhere).
	(cutSelection): Remove obsolete comment. Since the separation of
	selection and clipboard the selection is only filled as response
	to an explicit request by the X server, so there is no slowdown.
	The clipboard is only filled on explicit user request, so that does
	not result in slowdown either.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16490 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2007-01-04 09:26:42 +00:00
parent f6bb0d8b3d
commit 686c5f8364

View File

@ -493,15 +493,8 @@ void cutSelection(LCursor & cur, bool doclear, bool realcut)
LyXText * text = cur.text(); LyXText * text = cur.text();
BOOST_ASSERT(text); BOOST_ASSERT(text);
// Stuff what we got on the clipboard. Even if there is no selection. // Stuff what we got on the clipboard. Even if there is no selection.
if (realcut)
// There is a problem with having the stuffing here in that the theClipboard().put(cur.selectionAsString(true));
// larger the selection the slower LyX will get. This can be
// solved by running the line below only when the selection has
// finished. The solution used currently just works, to make it
// faster we need to be more clever and probably also have more
// calls to theSelection().put. (Lgb)
// theSelection().put(cur.selectionAsString(true));
// make sure that the depth behind the selection are restored, too // make sure that the depth behind the selection are restored, too
recordUndoSelection(cur); recordUndoSelection(cur);