Fix a warning message on gcc caused by previous commit in THIstPainter