[Bug 6006] New: incorrect paint of invisible buttons