On Wed, 8 Jan 2025 16:36:07 GMT, Dmitry Markov <dmar...@openjdk.org> wrote:

> On Windows debug build execution of `DrawFocusRect()` may cause an assertion 
> failure. In particular if a component, which is going to gain a focus, has 
> zero size, the function returns `0` because focus rectangle is empty.
> 
> It is necessary to check that the focus rectangle is not empty before 
> `DrawFocusRect()` call.

I'm a bit surprised that there's no Microsoft doc on the assert ..

-------------

Marked as reviewed by prr (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/22973#pullrequestreview-2537998180

Reply via email to