Merge pull request #241 from klusark/fixtext

Destroy the old textobject graphics data when text is changed. Fixes #240
This commit is contained in:
Giulio Camuffo 2011-06-12 02:52:56 -07:00
commit 119c340a32

View File

@ -55,6 +55,7 @@ TextObject::~TextObject() {
}
void TextObject::setText(const char *text) {
destroy();
if (strlen(text) < sizeof(_textID))
strcpy(_textID, text);
else {