Empty wxNotebook asserts on MSW in dark mode (Issue #26007)

11 views
Skip to first unread message

rudolfwalter

unread,
Dec 1, 2025, 6:57:53 AM (2 days ago) Dec 1
to wx-...@googlegroups.com, Subscribed
rudolfwalter created an issue (wxWidgets/wxWidgets#26007)

Description

Empty wxNotebooks trip an assertion during every paint on MSW in dark mode.

Looks like it is a regression from 365b07b, which moved a GetTabRect(0) call before the corresponding GetPageCount() check.

Repro

Run the notebook sample in dark mode, press Alt+L a few times to delete notebook pages, and see the assertion once the last one is deleted.

Platform and version information

  • wxWidgets version: 3.3 master
  • wxWidgets port: wxMSW
  • OS: Windows 11 25H2
  • other: 150% DPI


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26007@github.com>

VZ

unread,
Dec 1, 2025, 10:33:26 AM (2 days ago) Dec 1
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26007)

Thanks for noticing and reporting this, I'll push a fix soon.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26007/3597221276@github.com>

Reply all
Reply to author
Forward
0 new messages