RFR: 8346887: DrawFocusRect() may cause an assertion failure

Phil Race prr at openjdk.org
Wed Jan 8 19:18:44 UTC 2025


On Wed, 8 Jan 2025 16:36:07 GMT, Dmitry Markov <dmarkov at 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


More information about the client-libs-dev mailing list