From ff6baf9a44a9cbbe33d86e93c2d323076cc0c9d9 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Tue, 3 Jul 2007 17:11:05 +0000 Subject: [PATCH] Fix bug 3877. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18975 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/CutAndPaste.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/CutAndPaste.cpp b/src/CutAndPaste.cpp index 869d4707fe..f66153f739 100644 --- a/src/CutAndPaste.cpp +++ b/src/CutAndPaste.cpp @@ -676,8 +676,16 @@ void saveSelection(Cursor & cur) << to_utf8(cur.selectionAsString(true)) << "'." << endl; + // FIXME: The two lines below would allow middle-mouse + // pasting that preserves the LyX formatting when the selection + // is internal. They would also allow to use the feature on + // Windows and Mac. In the future, we may want to optionally enable + // this feature via a rc setting. + /* if (cur.selection()) copySelectionToStack(cur, selectionBuffer); + */ + // tell X whether we now have a valid selection theSelection().haveSelection(cur.selection()); }