mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-08-18 09:30:13 +08:00
Using invalid item resulted in an assert, avoid it by checking if it is valid before using it. Also avoid calling GetIcon() and GetLogicalWidth() twice in a row by storing the result in a variable. Closes #25881. Co-authored-by: Vadim Zeitlin <vadim@wxwidgets.org>