Setting vtkCornerAnnotation text to empty string renders incorrectly
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
After a text element of vtkCornerAnnotation has been set to a non-empty string and has been rendered, then setting the text element to an empty string results in incorrect rendering.
Result: A rectangle is drawn with the bounds of the previous text element.
Expected result: Nothing is drawn.
See attached file that's modified from the CornerAnnotation example [1].
Also see a proposed solution in the attached patch.
Reproduced with gitlab VTK as of commit 5158a4ce.
[1] http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CornerAnnotation