Commit 3ebc530
fix(gui): guard invalid dataview item and fix sidebar label measurement
EVT_DATAVIEW_SELECTION_CHANGED also fires when the selection is
cleared, unlike the old EVT_LIST_ITEM_SELECTED, and GetItemData() on
an invalid item crashes outright. Also measure the sidebar label width
with m_PrefsIcons's own font instead of the dialog's, since the two
can differ on native backends.
Addresses review feedback from got3nks on #671.
Co-Authored-By: Claude Sonnet 5 <[email protected]>1 parent bbdf83c commit 3ebc530
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
| 409 | + | |
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
| |||
2332 | 2332 | | |
2333 | 2333 | | |
2334 | 2334 | | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
| 2343 | + | |
2335 | 2344 | | |
2336 | 2345 | | |
2337 | 2346 | | |
| |||
0 commit comments