Don't run onPainted again.