Changeset 2947 for trunk


Ignore:
Timestamp:
01/28/04 17:57:35 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2946 r2947  
    6060     - gave names to the filters
    6161     - removed adding MHCamera to fList because it was deleted twice
     62
     63   * mhist/MHCamera.cc:
     64     - fixed usage of fPainter in Paint() - title was not updated
     65       correctly
    6266
    6367
  • trunk/MagicSoft/Mars/mhist/MHCamera.cc

    r2894 r2947  
    677677    Bool_t iscol = isbox ? !opt.Contains("nocol") : 1;
    678678
    679     GetPainter();
    680     if (fPainter)
    681     {
     679    if (GetPainter())
     680    {
     681        // Paint statistics
    682682        if (!TestBit(TH1::kNoStats))
    683         {
    684             fPainter->SetHistogram(this);
    685683            fPainter->PaintStat(gStyle->GetOptStat(), NULL);
    686         }
    687684
    688685        // Paint primitives (pixels, color legend, photons, ...)
    689686        if (fPainter->InheritsFrom(THistPainter::Class()))
    690             ((THistPainter*)fPainter)->PaintTitle();
     687        {
     688            static_cast<THistPainter*>(fPainter)->MakeChopt("");
     689            static_cast<THistPainter*>(fPainter)->PaintTitle();
     690        }
    691691    }
    692692
Note: See TracChangeset for help on using the changeset viewer.