coffeycathal_cp
b2d74023ce
After it is executed, RemoveText() deletes elements that have zero text length. This was removing elements which contained no text but still contained a drawing element such as a picture.
This fix checks that an element contains no drawing element and that its text length is zero before removing the element.