Changeset 8562 for trunk/MagicSoft
- Timestamp:
- 06/16/07 22:36:13 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MGList.cc
r5713 r8562 88 88 // 89 89 Remove(obj); 90 gClient->FreePicture((TGPicture*)obj); 90 if (gClient) 91 gClient->FreePicture((TGPicture*)obj); 91 92 } 92 93 } … … 257 258 const TGPicture *MGList::GetPicture(const char *name) 258 259 { 260 if (!gClient) 261 return NULL; 262 259 263 TGPicture *pic = const_cast<TGPicture*>(gClient->GetPicture(name)); 260 264 AddPicture(pic, name); … … 276 280 const TGPicture *MGList::GetPicture(const char *name, Int_t width, Int_t height) 277 281 { 282 if (!gClient) 283 return NULL; 284 278 285 TGPicture *pic = const_cast<TGPicture*>(gClient->GetPicture(name, width, height)); 279 286 AddPicture(pic, name);
Note:
See TracChangeset
for help on using the changeset viewer.