Changeset 19307 for trunk/Mars/mhbase
- Timestamp:
- 10/25/18 19:45:49 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mhbase/MFillH.cc
r17125 r19307 606 606 { 607 607 const TString opt(MString::Format("nonew %s", fDrawOption.Data())); 608 // fCanvas->cd(); 609 // fCanvas->Clear(); 610 611 // Remove the old class to prevent clashes calling 612 // Paint-functions when the display is updated 608 609 // Remove the old class from the canvas to avoid that it is deleted 613 610 fCanvas->GetListOfPrimitives()->Remove(fH); 614 fCanvas->GetListOfPrimitives()->Add(fH->Clone(), opt); 611 612 // change into canvas 613 fCanvas->cd(); 614 615 // Now clear the canvas from everything fH might have added there 616 // (this should be done only if this is not called with 'same') 617 //fCanvas->Clear(); // already in MH::DrawClone() 618 619 // Make sure that TGraphs go to the correct pads 620 //gROOT->SetSelectedPad(0); // already in MH::DrawClone() 621 622 // Now create a clone and draw it to the canvas 623 fH->DrawClone(opt); 624 625 // Make sure the update is displayed 615 626 fCanvas->Modified(); 616 627 fCanvas->Update();
Note:
See TracChangeset
for help on using the changeset viewer.