Commit Graph
2 Commits
Author SHA1 Message Date
Maarten Bent c9798cada1 CMake: Add missing test files
Run GUI resource tests on WXMSW only.
Fix mouse enter/leave events test in wxQt by yielding longer.
2026-01-25 22:08:21 +01:00
Vadim Zeitlin d662d5f6a0 Fix wrong destruction of wxBitmap in wxMSW wxStaticBitmap
Due to a regression introduced in 3e32a9abe1 (Don't bother resetting
wxStaticBitmap image when destroying it, 2025-06-12), which was part
of #25518, the handle of wxBitmap passed to wxStaticBitmap::SetBitmap()
was destroyed when another bitmap was passed to SetBitmap() later.

Fix this by ensuring that we don't overwrite the value of the current
handle (to be deleted) prematurely in DoUpdateImage().

Add a simple unit test for wxStaticBitmap checking that the problem is
really fixed and, under MSW, also that it doesn't leak bitmap handles.

Closes #26106.
2026-01-24 17:02:06 +01:00