Changeset 973


Ignore:
Timestamp:
10/23/01 13:24:54 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mgui/MCamDisplay.cc

    r961 r973  
    3636
    3737    for (UInt_t i=0; i<fNumPixels; i++)
    38         (*fPixels)[i] = new MHexagon((*geom)[i]);
     38        new ((*fPixels)[i]) MHexagon((*geom)[i]);
    3939
    4040    //
     
    5555        const Int_t y = il*40;
    5656
    57         TBox  *newbox = new TBox (650, y-500, 700, y-460);
    58         TText *newtxt = new TText(720, y-480, text);
     57        TBox  *newbox = new ((*fLegend)[il])  TBox (650, y-500, 700, y-460);
     58        TText *newtxt = new ((*fLegText)[il]) TText(720, y-480, text);
    5959
    6060        const Float_t lvl = 50. / kITEMS_LEGEND * il;
     
    6666        newtxt->SetTextSize(0.025);
    6767        newtxt->SetTextAlign(12);
    68 
    69         (*fLegend) [il] = newbox;
    70         (*fLegText)[il] = newtxt;
    7168    }
    7269}
Note: See TracChangeset for help on using the changeset viewer.