Re #6452. Breaking an infinite loop of resizing and drawing.