Please sign in to comment.
Fix crash when resetting wxGrid table with editor control shown
This resulted in a crash in GetDefaultEditorForCell() later when GetEditor() was called from HideCellEditControl() which is itself always called from wxGrid dtor because GetDefaultEditorForCell() dereferenced m_table without checking if it was not null any more. Add the missing check to this function and GetDefaultRendererForCell() too, for consistency. In addition, dismiss the cell editor immediately when changing table instead of doing it at some later time, as it just doesn't make sense to continue showing it any more as the data it was started to edit doesn't belong to us any longer.
- Loading branch information...