Ticket #14802 (closed defect: fixed)
wxDVC crashes after removing items and trying to navigate with the keyboard
|Reported by:||rk||Owned by:|
This can be seen in the dataview sample.
* open dataview sample
* select the "Classical music" node
* delete the node using the keyboard *not* the "Delete selected" button
* press cursor right
The reason for this is that the 'current' item of the tree is not updated properly if items are deleted. The actual crash happens because we try to expand a tree node that no longer exists.
The attached patch fixes this by making sure that m_currentRow is updated properly and always stays inside its allowed boundaries.