From: Jürgen Vigna Date: Wed, 20 Feb 2002 11:00:00 +0000 (+0000) Subject: Try to comment out the seemingly unneeded (and wrong) code. X-Git-Tag: 1.6.10~19824 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6f673aed8bd84cb601ff14b7cbb310bea818cab9;p=features.git Try to comment out the seemingly unneeded (and wrong) code. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3572 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/ChangeLog b/src/ChangeLog index 71540ee6dd..7a991f4567 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2002-02-20 Juergen Vigna + + * CutAndPaste.C: commenting out seemingly uneeded code. + 2002-02-19 Allan Rae * BufferView2.C (removeAutoInsets): fix remaining freed memory read. diff --git a/src/CutAndPaste.C b/src/CutAndPaste.C index 0a8e903612..8d0977bcb8 100644 --- a/src/CutAndPaste.C +++ b/src/CutAndPaste.C @@ -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