Probable fix for [ 1933745 ] Crash in wxDataViewHeaderWindowBase::GetColumn()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1464,7 +1464,7 @@ bool wxDataViewHeaderWindowMSW::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARA
|
|||||||
|
|
||||||
case HDN_BEGINDRAG:
|
case HDN_BEGINDRAG:
|
||||||
// user has started to reorder a column
|
// user has started to reorder a column
|
||||||
if (!GetColumn(nmHDR->iItem)->IsReorderable())
|
if ((nmHDR->iItem != -1) && (!GetColumn(nmHDR->iItem)->IsReorderable()))
|
||||||
{
|
{
|
||||||
// veto it!
|
// veto it!
|
||||||
*result = TRUE;
|
*result = TRUE;
|
||||||
|
Reference in New Issue
Block a user