potential fix of event handler crash in non-muSR fit
This commit is contained in:
@ -3048,6 +3048,9 @@ void PMusrCanvas::PlotData(Bool_t unzoom)
|
||||
xmax = fXmax;
|
||||
}
|
||||
|
||||
// tell the canvas that the selected object (the one under the mouse pointer) is not your object, before to actually delete it.
|
||||
fMainCanvas->SetSelected(fMainCanvas->GetPadSave());
|
||||
|
||||
// cleanup if previous fMultiGraphData is present
|
||||
if (fMultiGraphData) {
|
||||
delete fMultiGraphData;
|
||||
@ -3275,6 +3278,9 @@ void PMusrCanvas::PlotDifference(Bool_t unzoom)
|
||||
xmax = fXmax;
|
||||
}
|
||||
|
||||
// tell the canvas that the selected object (the one under the mouse pointer) is not your object, before to actually delete it.
|
||||
fMainCanvas->SetSelected(fMainCanvas->GetPadSave());
|
||||
|
||||
// clean up previous fMultiGraphDiff
|
||||
if (fMultiGraphDiff) {
|
||||
delete fMultiGraphDiff;
|
||||
|
Reference in New Issue
Block a user