]> git.lyx.org Git - features.git/commitdiff
Try to comment out the seemingly unneeded (and wrong) code.
authorJürgen Vigna <jug@sad.it>
Wed, 20 Feb 2002 11:00:00 +0000 (11:00 +0000)
committerJürgen Vigna <jug@sad.it>
Wed, 20 Feb 2002 11:00:00 +0000 (11:00 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3572 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/CutAndPaste.C

index 71540ee6dde595cd124cda339efa1833c020008d..7a991f45672638d043f0701b2306e6da86966448 100644 (file)
@@ -1,3 +1,7 @@
+2002-02-20  Juergen Vigna  <jug@sad.it>
+
+       * CutAndPaste.C: commenting out seemingly uneeded code.
+
 2002-02-19  Allan Rae  <rae@lyx.org>
 
        * BufferView2.C (removeAutoInsets): fix remaining freed memory read.
index 0a8e903612aa1719fc3dc81f17cc6fe4a8ebcdea..8d0977bcb884d7a4d20ea46204cee2a02fbb1484 100644 (file)
@@ -222,7 +222,8 @@ bool CutAndPaste::pasteSelection(Paragraph ** par, Paragraph ** endpar,
        // Paragraph * tmpbuf;
        Paragraph * tmppar = *par;
        int tmppos = pos;
-       
+
+#if 0
        // There are two cases: cutbuffer only one paragraph or many
        if (!buf->next()) {
                // only within a paragraph
@@ -251,7 +252,9 @@ bool CutAndPaste::pasteSelection(Paragraph ** par, Paragraph ** endpar,
                buf = tmpbuf;
                *endpar = tmppar->next();
                pos = tmppos;
-       } else {
+       } else
+#endif
+       {
                // many paragraphs
                
                // make a copy of the simple cut_buffer