Changeset 5289 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Oct 6, 2005, 11:20:24 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/text_engine.cc
r5288 r5289 814 814 // first remove all the remaining Texts (if any). 815 815 tList<BaseObject>* textList = ClassList::getList(CL_TEXT); 816 tIterator<BaseObject>* textIterator = textList->getIterator(); 817 Text* text = dynamic_cast<Text*>(textIterator->firstElement()); 818 while( text != NULL) 816 if (text != NULL) 819 817 { 820 delete text; 821 text = dynamic_cast<Text*>(textIterator->nextElement()); 822 } 823 delete textIterator; 824 PRINT(0)("+---------------------------TE--+\n"); 825 818 tIterator<BaseObject>* textIterator = textList->getIterator(); 819 Text* text = dynamic_cast<Text*>(textIterator->firstElement()); 820 while( text != NULL) 821 { 822 delete text; 823 text = dynamic_cast<Text*>(textIterator->nextElement()); 824 } 825 delete textIterator; 826 } 826 827 // delete all remaining fonts (this is done in the ResourceManager) 827 828 tList<BaseObject>* fontList = ClassList::getList(CL_FONT);
Note: See TracChangeset
for help on using the changeset viewer.