Changeset 7755 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
06/27/06 09:15:53 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7753 r7755  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
     21 2006/06/27 Thomas Bretz
     22
     23   * mhflux/MHAlpha.cc:
     24     - added a small change to prevent DrawAll from opening a new
     25       canvas if called with the option "No new canvas" and no
     26       fDisplay
     27
     28
    2029
    2130 2006/06/26 Thomas Bretz
  • trunk/MagicSoft/Mars/mhflux/MHAlpha.cc

    r7742 r7755  
    769769void MHAlpha::DrawAll(Bool_t newc)
    770770{
     771    if (newc && !fDisplay)
     772        return;
     773
    771774    // FIXME: Do in Paint if special option given!
    772     TCanvas &c = newc || !fDisplay ? *new TCanvas : fDisplay->AddTab("SizeBins");
     775    TCanvas &c = newc ? *new TCanvas : fDisplay->AddTab("SizeBins");
    773776    Int_t n = fHist.GetNbinsY();
    774777    Int_t nc = (Int_t)(TMath::Sqrt((Float_t)n-1)+1);
Note: See TracChangeset for help on using the changeset viewer.