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
This commit is contained in:
Jürgen Vigna 2002-02-20 11:00:00 +00:00
parent 1b85ecfa3d
commit 6f673aed8b
2 changed files with 9 additions and 2 deletions

View 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.

View File

@ -223,6 +223,7 @@ bool CutAndPaste::pasteSelection(Paragraph ** par, Paragraph ** endpar,
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