]> git.lyx.org Git - lyx.git/commitdiff
Fix bug 3877.
authorAbdelrazak Younes <younes@lyx.org>
Tue, 3 Jul 2007 17:11:05 +0000 (17:11 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 3 Jul 2007 17:11:05 +0000 (17:11 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18975 a592a061-630c-0410-9148-cb99ea01b6c8

src/CutAndPaste.cpp

index 869d4707fee1987105cdceddfe49d35cbacda74d..f66153f7393b329495c284c5afd979553ee5a3e7 100644 (file)
@@ -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());
 }