X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bf7945cef10c0844a32e95695c544d829da9293a..4b7b750dd1ffd0d26b78728adb613b282a37c058:/src/generic/grid.cpp?ds=sidebyside diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 6a9750f96f..c547765a84 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -3503,6 +3503,8 @@ wxGrid::wxGrid( wxWindow *parent, wxGrid::~wxGrid() { + // Must do this or ~wxScrollHelper will pop the wrong event handler + SetTargetWindow(this); ClearAttrCache(); wxSafeDecRef(m_defaultCellAttr);