Changeset 8562 for trunk/MagicSoft


Ignore:
Timestamp:
06/16/07 22:36:13 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MGList.cc

    r5713 r8562  
    8888        //
    8989        Remove(obj);
    90         gClient->FreePicture((TGPicture*)obj);
     90        if (gClient)
     91            gClient->FreePicture((TGPicture*)obj);
    9192    }
    9293}
     
    257258const TGPicture *MGList::GetPicture(const char *name)
    258259{
     260    if (!gClient)
     261        return NULL;
     262
    259263    TGPicture *pic = const_cast<TGPicture*>(gClient->GetPicture(name));
    260264    AddPicture(pic, name);
     
    276280const TGPicture *MGList::GetPicture(const char *name, Int_t width, Int_t height)
    277281{
     282    if (!gClient)
     283        return NULL;
     284
    278285    TGPicture *pic = const_cast<TGPicture*>(gClient->GetPicture(name, width, height));
    279286    AddPicture(pic, name);
Note: See TracChangeset for help on using the changeset viewer.