Fix creating empty accelerator table in wxMSW (PR #25538)

28 views
Skip to first unread message

VZ

unread,
Jun 17, 2025, 1:31:40 PM6/17/25
to wx-...@googlegroups.com, Subscribed

See #25517.


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/25538

Commit Summary

  • 82645d5 Remove wxAcceleratorRefData::m_ok
  • 750b2a4 Fix creating wxAcceleratorTable with 0 entries

File Changes

(3 files)

Patch Links:


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/pull/25538@github.com>

VZ

unread,
Jun 17, 2025, 8:48:07 PM6/17/25
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#25538)

So it turns out that wxMSW was an outlier and that creating wxAccelTable with 0 entries creates a valid (its IsOk() returns true) object in all the other ports. wxMSW behaviour still makes (more) sense to me, so I plan to update all the other ports, but please let me know if anybody disagrees and think it's wxMSW that should be changed (note that while this PR fixes the assert, which is a recent regression, it always created invalid object as ::CreateAcceleratorTable() fails when passed 0 entries).


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/pull/25538/c2982241088@github.com>

VZ

unread,
Jun 19, 2025, 12:32:39 PM6/19/25
to wx-...@googlegroups.com, Push

@vadz pushed 4 commits.

  • 5a39c3b Simplify code in generic wxAcceleratorTable::Remove()
  • b38e7bd Remove unnecessary statement for wxOSX wxAcceleratorTable ctor
  • 5fd2f2c Make wxAcceleratorTable with 0 entries invalid in other ports too
  • 5d276d8 Make empty wxAcceleratorTable always invalid


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/25538/before/750b2a47ae774b03fd823843bd63be6159f19a21/after/5d276d83674c748724e61a55f9aec21bff488a11@github.com>

VZ

unread,
Jun 22, 2025, 2:51:31 PM6/22/25
to wx-...@googlegroups.com, Subscribed

Merged #25538 into master.


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/pull/25538/issue_event/18262264040@github.com>

Reply all
Reply to author
Forward
0 new messages