Drawable::createCopy() does not copy the names

not sure if this is intentional, but a Drawable::createCopy() “deep copy” does not copy across the names from the original components.

im my version, i’ve added the line; setName(other.getName()); to the relevant copy methods of drawables. it’s not terribly elegant, perhaps there’s a better way, but it works.

– hugh.

Drat! Since it derives from Component, and the name is actually a property of Component, I think I just sort of assumed that it’d be copied, but of course Component doesn’t have a copy constructor… Ta for the heads-up, I’ll sort that out!