Ignore:
Timestamp:
02/09/04 15:44:04 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mmain/MBrowser.cc

    r3021 r3069  
    137137
    138138    const TGPicture *pic0 = fList->GetPicture("magic_t.xpm");
    139     TGTreeLBEntry *entry = new TGTreeLBEntry(dir->GetListBox()->GetContainer(),
    140                                              new TGString("/data/MAGIC"), pic0, 6000,
    141                                              new TGString("/data/MAGIC"));
    142     TGLayoutHints *laylb = new TGLayoutHints(kLHintsLeft|kLHintsTop, 14, 0, 0, 0);
    143     dir->AddEntry(entry, laylb);
    144     // Note necessary - deleted in ~TGLBContainer: fList->Add(laylb);
    145     fList->Add(entry);
     139    if (!pic0)
     140    {
     141        TGTreeLBEntry *entry = new TGTreeLBEntry(dir->GetListBox()->GetContainer(),
     142                                                 new TGString("/data/MAGIC"), pic0, 6000,
     143                                                 new TGString("/data/MAGIC"));
     144        TGLayoutHints *laylb = new TGLayoutHints(kLHintsLeft|kLHintsTop, 14, 0, 0, 0);
     145        dir->AddEntry(entry, laylb);
     146        // Note necessary - deleted in ~TGLBContainer: fList->Add(laylb);
     147        fList->Add(entry);
     148    }
    146149
    147150    //
Note: See TracChangeset for help on using the changeset viewer.