--- Below this line is a copy of the message.
Return-Path: <[EMAIL PROTECTED]>
Received: (qmail 14128 invoked from network); 22 May 2000 11:54:53 -0000
Received: from wsjug.sad.it (192.106.213.144)
by wierdlmpc.msci.memphis.edu with SMTP; 22 May 2000 11:54:53 -0000
Received: (from jug@localhost)
by wsjug.sad.it (8.9.3/8.9.3) id NAA08728;
Mon, 22 May 2000 13:55:06 +0200
Message-ID: <[EMAIL PROTECTED]>
X-Mailer: XFMail 1.4.4 on Linux
X-Priority: 3 (Normal)
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0
In-Reply-To: <[EMAIL PROTECTED]>
Date: Mon, 22 May 2000 13:55:06 +0200 (CEST)
Reply-To: Juergen Vigna <[EMAIL PROTECTED]>
From: Juergen Vigna <[EMAIL PROTECTED]>
To: LyX-Developers <[EMAIL PROTECTED]>
Subject: Re: 1.1.5pre3 purify report #2
Cc: Michael Schmitt <[EMAIL PROTECTED]>
On 22-May-2000 Michael Schmitt wrote:
> Juergen Vigna wrote:
>
>> I changed this:
>>
>> in LyXParagraph::PasteParagraph() i changed the last rows to:
>>
>> // delete the next paragraph
>> LyXParagraph *prev = the_next->previous;
>> delete the_next;
>> prev->next = 0;
>>
>> Hope this fixes this bug!
>
> I apologize. Purify still reports the messages below despite the changes.
>
Thanks for your fix reply, now I really have had a GOOD look at it and
seen that the endpar was really a freed paragraph if the endpar is
Pasted with the startpar. This should do the trick and fix this bug,
could you please check it?
Greets Jürgen
P.S.: This is the patch if you prefer it to cvs!
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/CutAndPaste.C,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- lyx-devel/src/CutAndPaste.C 2000/04/27 09:05:04 1.8
+++ lyx-devel/src/CutAndPaste.C 2000/05/22 11:08:25 1.9
@@ -125,8 +125,10 @@
if (doclear)
startpar->Next()->ClearParagraph();
if (startpar->FirstPhysicalPar()->HasSameLayout(startpar->Next()) ||
- !startpar->Next()->Last())
+ !startpar->Next()->Last()) {
startpar->ParFromPos(start)->PasteParagraph();
+ (*endpar) = startpar; // this because endpar gets deleted here!
+ }
}
return true;
}
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen Vigna E-Mail: [EMAIL PROTECTED]
Italienallee 13/N Tel: +39-0471-450260
I-39100 Bozen Fax: +39-0471-450296
ITALY Web: http://www.sad.it/~jug
Do not underestimate the value of print statements for debugging.
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._