Even though I tested it thoroughly, it seems I missed something after all. Thanks for reporting the problem.
Yes, the change you made is absolutely fine (this is how it was on previous version).
Regarding the Repaint warning, when does exactly this show up? I can’t replicate this.