Re: Bug in DrawPanel

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Jun 02 1997 - 16:28:24 MEST


Rudi Lutter wrote:
> 
> Dear roots,
> 
> I think there is bug in "DrawPanel":
> Try the following:
>   (1) run "hsimple" to produce a histogram
>   (2) click on the curve to get the DrawPanel for "hpx"
>   (3) use the slider to select a region
>   (4) click on the curve once more to get "FitPanel"
>   (5) do a gaussian fit for example
>   (6) click on the fitted curve to get a DrawPanel again
>   (7) the above DrawPanel (2) will then be reassigned to "gauss"
>   (8) trying to use the slider causes "segment violation"
>   (9) the original histogram "hpx" vanishes
> 
> It seems that some "hpx" defs are left in the DrawPanel when it is reused
> for the "gauss" curve.
> 

Thanks for reporting this problem.
I have protected the class TDrawPanelHist to prevent zooming
when the DrawPanel is invoked from a function fitted on top
of an histogram. To zoom, select the histogram, not the fitted
function.

Rene Brun



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:19 MET