Re: [ROOT] TPolyLine3D is deleted when pad is cleared. Bug?

From: Ruben Shahoian (Ruben.Shahoyan@cern.ch)
Date: Fri Oct 24 2003 - 17:14:26 MEST


Thank you Rene,
these TPolyLine3D's are the data members of the track object (used for 
event display), so, to prevent deletion by gPad I had to reset the bits
kMustCleanup and kCanDelete.

Best regards,
	Ruben

-- 

On Fri, 24 Oct 2003, Rene Brun wrote:

> Hi Ruben,
> 
> The low level primitives like lines, text, markers are by default
> automatically deleted when clearing the canvas. TPolyLine3D used to be an
> exception until a fix in February this year.
> See the "Object Ownership" chapter in the Usrers Guide pade  (in particular page
> 100)
> 
> In your example, you should remove the line
>   delete line;
> 
> Rene Brun
> 



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET